MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / beforeSend

Function beforeSend

lib/sentry.ts:54–59  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

52 environment: sentryEnv || defArgs.env[0],
53 sendDefaultPii: true, // equivalent to `{ip: true}` on older Sentry versions
54 beforeSend(event) {
55 if (event.request?.data && shouldRedactRequestData(event.request.data)) {
56 event.request.data = {redacted: true};
57 }
58 return event;
59 },
60 });
61 logger.info(`Configured with Sentry endpoint ${sentryDsn}`);
62}

Callers

nothing calls this directly

Calls 1

shouldRedactRequestDataFunction · 0.85

Tested by

no test coverage detected