Skip to content

Commit

Permalink
simplify solid router
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Nov 13, 2024
1 parent 2232458 commit bbbca89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/solid/src/solidrouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function withSentryRouterRoot(Root: Component<RouteSectionProps>): Component<Rou
// everything else was already instrumented correctly in `useBeforeLeave`
if (op === 'navigation' && description === '-1') {
rootSpan.updateName(name);
rootSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, data && data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]);
rootSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'url');
}
}
});
Expand Down

0 comments on commit bbbca89

Please sign in to comment.