Skip to content

Commit 5d9e46d

Browse files
committed
feat: force enable tracing for the user
1 parent c32e738 commit 5d9e46d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/nitro/src/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export function setupSentryNitroModule(
2525
_moduleOptions?: SentryNitroOptions,
2626
_serverConfigFile?: string,
2727
): NitroConfig {
28+
// @ts-expect-error Nitro tracing config is not out yet
29+
if (!config.tracing) {
30+
// @ts-expect-error Nitro tracing config is not out yet
31+
config.tracing = true;
32+
}
33+
2834
config.modules = config.modules || [];
2935
config.modules.push(createNitroModule());
3036

0 commit comments

Comments
 (0)