File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-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 ] ;
You can’t perform that action at this time.
0 commit comments