Skip to content

Commit 5362333

Browse files
committed
update attribute
1 parent 4e75465 commit 5362333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nuxt/src/runtime/hooks/updateRouteBeforeResponse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export function updateRouteBeforeResponse(event: H3Event): void {
3636

3737
if (params && typeof params === 'object') {
3838
Object.entries(params).forEach(([key, value]) => {
39-
rootSpan.setAttribute(`params.${key}`, String(value));
39+
// Based on this convention: https://getsentry.github.io/sentry-conventions/generated/attributes/url.html#urlpathparameterkey
40+
rootSpan.setAttribute(`url.path.parameter.${key}`, String(value));
4041
});
4142
}
4243

0 commit comments

Comments
 (0)