Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 732x 732x 732x | export interface SentryConfig {
tracesSampleRate: number;
enableSentryInDev: boolean;
maxValueLength: number;
applicationKey: string;
dropInjectedScriptErrors: boolean;
}
export const sentryConfig: SentryConfig = {
tracesSampleRate: 0,
enableSentryInDev: false,
maxValueLength: 100000,
// Marks the app's own chunks at build time so the SDK can tell them from code
// injected into the page. The build plugin and the SDK must agree on it.
applicationKey: "konsti",
// Discard injected-script errors, or keep them and only tag them. Tagging
// loses nothing and is the reversible way to see what the filter removes,
// at the cost of the noise still reaching Sentry through the tunnel
dropInjectedScriptErrors: true,
};
// What the build plugin puts before the application key in each chunk's module
// metadata, spelled once here because neither Sentry package exports it
export const sentryApplicationKeyPrefix = "_sentryBundlerPluginAppKey:";
// The whole property the stamp writes, for the build-time check and the tests.
// Runtime code has to build it from the prefix instead: spelling it out would
// put the quoted key in a chunk, which is half of what that check reads as proof
export const sentryApplicationKeyProperty = `${sentryApplicationKeyPrefix}${sentryConfig.applicationKey}`;
|