We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c11d070 commit 96fcdb2Copy full SHA for 96fcdb2
src/tracing.ts
@@ -29,7 +29,13 @@ export const init = (serviceName: string) => {
29
instrumentations: [
30
new HttpInstrumentation({
31
ignoreIncomingRequestHook(req) {
32
- return req.url?.startsWith('/health') ?? false;
+ if (req.url?.startsWith('/health')) {
33
+ return true; // Ignore health check requests
34
+ }
35
+ else if (req.url?.startsWith('/api/action/getNextQueuedDiscordVerification')) {
36
+ return Math.random() < 0.008; // Only sample 0.8% of Discord bot queue requests
37
38
+ return false;
39
}
40
}),
41
new ExpressInstrumentation(),
0 commit comments