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

Function shouldRedactRequestData

lib/sentry.ts:31–35  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

29import {PropertyGetter} from './properties.interfaces.js';
30
31function shouldRedactRequestData(data: unknown) {
32 if (data === undefined || data === null) return true;
33 if (Object.hasOwn(data, 'allowStoreCodeDebug')) return !data['allowStoreCodeDebug'];
34 return true;
35}
36
37export function SetupSentry(
38 sentryDsn: string,

Callers 1

beforeSendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected