File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ type SentryNitroOptions = {
1212 * @returns The modified config to be exported
1313 */
1414export 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 || [ ] ;
You can’t perform that action at this time.
0 commit comments