Skip to content

Commit 6f23c11

Browse files
committed
fix: tracing config may have changed
1 parent 5d9e46d commit 6f23c11

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/nitro/src/config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@ export function setupSentryNitroModule(
2525
_moduleOptions?: SentryNitroOptions,
2626
_serverConfigFile?: string,
2727
): NitroConfig {
28-
// @ts-expect-error Nitro tracing config is not out yet
28+
// @ts-expect-error Nitro tracing config is not out yet - enable tracing channels for h3 and srvx
2929
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.
3032
// @ts-expect-error Nitro tracing config is not out yet
31-
config.tracing = true;
33+
// config.tracing = true;
34+
config.tracing = { srvx: true, h3: true };
3235
}
3336

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

0 commit comments

Comments
 (0)