File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,9 @@ function routeMatchToParamSpanAttributes(match: VendoredTanstackRouterRouteMatch
119
119
120
120
const paramAttributes : Record < string , string > = { } ;
121
121
Object . entries ( match . params ) . forEach ( ( [ key , value ] ) => {
122
- paramAttributes [ `url.path.params.${ key } ` ] = value ;
122
+ paramAttributes [ `url.path.params.${ key } ` ] = value ; // todo(v10): remove attribute which does not adhere to Sentry's semantic convention
123
+ paramAttributes [ `url.path.parameter.${ key } ` ] = value ;
124
+ paramAttributes [ `params.${ key } ` ] = value ; // params.[key] is an alias
123
125
} ) ;
124
126
125
127
return paramAttributes ;
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ export function instrumentVueRouter(
61
61
const attributes : SpanAttributes = { } ;
62
62
63
63
for ( const key of Object . keys ( to . params ) ) {
64
- attributes [ `params.${ key } ` ] = to . params [ key ] ;
64
+ attributes [ `url.path.parameter.${ key } ` ] = to . params [ key ] ;
65
+ attributes [ `params.${ key } ` ] = to . params [ key ] ; // params.[key] is an alias
65
66
}
66
67
for ( const key of Object . keys ( to . query ) ) {
67
68
const value = to . query [ key ] ;
Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ function getAttributesForRoute(route: Route): SpanAttributes {
423
423
const attributes : SpanAttributes = { } ;
424
424
425
425
for ( const key of Object . keys ( params ) ) {
426
+ attributes [ `url.path.parameter.${ key } ` ] = params [ key ] ;
426
427
attributes [ `params.${ key } ` ] = params [ key ] ;
427
428
}
428
429
for ( const key of Object . keys ( query ) ) {
You can’t perform that action at this time.
0 commit comments