Skip to content

Commit 58317ac

Browse files
committed
fix: correctly enable the config
1 parent 8dab820 commit 58317ac

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

packages/nitro/src/config.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ type SentryNitroOptions = {
1212
* @returns The modified config to be exported
1313
*/
1414
export function withSentryConfig(config: NitroConfig, moduleOptions?: SentryNitroOptions): NitroConfig {
15-
setupSentryNitroModule(config, moduleOptions);
16-
17-
return config;
15+
return setupSentryNitroModule(config, moduleOptions);
1816
}
1917

2018
/**
@@ -25,13 +23,10 @@ export function setupSentryNitroModule(
2523
_moduleOptions?: SentryNitroOptions,
2624
_serverConfigFile?: string,
2725
): NitroConfig {
28-
// @ts-expect-error Nitro tracing config is not out yet - enable tracing channels for h3 and srvx
26+
// @ts-expect-error Nitro tracing config is not out yet
2927
if (!config.tracing) {
30-
// Explicitly set the full object instead of `true` to avoid relying on Nitro's
31-
// internal normalization (resolveTracingOptions), which may not run in all environments.
3228
// @ts-expect-error Nitro tracing config is not out yet
33-
// config.tracing = true;
34-
config.tracing = { srvx: true, h3: true };
29+
config.tracing = true;
3530
}
3631

3732
config.modules = config.modules || [];

0 commit comments

Comments
 (0)