We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9e46d commit 6f23c11Copy full SHA for 6f23c11
1 file changed
packages/nitro/src/config.ts
@@ -25,10 +25,13 @@ export function setupSentryNitroModule(
25
_moduleOptions?: SentryNitroOptions,
26
_serverConfigFile?: string,
27
): NitroConfig {
28
- // @ts-expect-error Nitro tracing config is not out yet
+ // @ts-expect-error Nitro tracing config is not out yet - enable tracing channels for h3 and srvx
29
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.
32
// @ts-expect-error Nitro tracing config is not out yet
- config.tracing = true;
33
+ // config.tracing = true;
34
+ config.tracing = { srvx: true, h3: true };
35
}
36
37
config.modules = config.modules || [];
0 commit comments