File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
packages/astro/src/server Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -146,16 +146,14 @@ async function enhanceHttpServerSpan(
146146 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.http.astro' ,
147147 } ) ;
148148
149- if ( ! parametrizedRoute ) {
150- return next ( ) ;
151- }
152-
153- rootSpan . setAttributes ( {
154- [ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'route' ,
155- 'http.route' : parametrizedRoute ,
156- } ) ;
149+ if ( parametrizedRoute ) {
150+ rootSpan . setAttributes ( {
151+ [ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] : 'route' ,
152+ 'http.route' : parametrizedRoute ,
153+ } ) ;
157154
158- isolationScope . setTransactionName ( `${ method } ${ parametrizedRoute } ` ) ;
155+ isolationScope . setTransactionName ( `${ method } ${ parametrizedRoute } ` ) ;
156+ }
159157
160158 try {
161159 const originalResponse = await next ( ) ;
You can’t perform that action at this time.
0 commit comments