File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,14 @@ function withSentryRouterRoot(Root: Component<RouteSectionProps>): Component<Rou
82
82
const rootSpan = getActiveRootSpan ( ) ;
83
83
84
84
if ( rootSpan ) {
85
- const { op, description, data } = spanToJSON ( rootSpan ) ;
85
+ const { op, description } = spanToJSON ( rootSpan ) ;
86
86
87
87
// We only need to update navigation spans that have been created by
88
88
// a browser back-button navigation (stored as `-1` by solid router)
89
89
// everything else was already instrumented correctly in `useBeforeLeave`
90
90
if ( op === 'navigation' && description === '-1' ) {
91
91
rootSpan . updateName ( name ) ;
92
- rootSpan . setAttribute ( SEMANTIC_ATTRIBUTE_SENTRY_SOURCE , data && data [ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] ) ;
92
+ rootSpan . setAttribute ( SEMANTIC_ATTRIBUTE_SENTRY_SOURCE , 'url' ) ;
93
93
}
94
94
}
95
95
} ) ;
You can’t perform that action at this time.
0 commit comments