File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/nextjs/src/server Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export function init(options: NodeOptions): NodeClient | undefined {
178178 'AppRouteRouteHandlers' ,
179179 'ResolveMetadata' ,
180180 'Middleware' ,
181- 'NextNodeServerSpan'
181+ 'NextNodeServerSpan' ,
182182 ] . includes ( category ) ;
183183
184184 if ( isNextjsSpan && functionName ) {
@@ -188,18 +188,15 @@ export function init(options: NodeOptions): NodeClient | undefined {
188188 functionType = 'Component' ;
189189 } else if ( category === 'NextNodeServer' && functionName === 'findPageComponents' ) {
190190 functionType = 'Page' ;
191- }
192- else if ( category === 'NextNodeServerSpan' && functionName === 'getLayoutOrPageModule' ) {
191+ } else if ( category === 'NextNodeServerSpan' && functionName === 'getLayoutOrPageModule' ) {
193192 if ( spanAttributes ?. [ 'next.segment' ] === '__LAYOUT__' ) {
194193 functionType = 'Layout' ;
195194 } else {
196195 functionType = 'Page' ;
197196 }
198-
199197 }
200198 }
201- }
202-
199+ }
203200
204201 if ( functionType ) {
205202 let route = '/' ;
You can’t perform that action at this time.
0 commit comments