Skip to content

Commit

Permalink
fix: Small fixes to JS browser tracing docs (#9190)
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Feb 21, 2024
1 parent 8bfa518 commit fbcc369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Sentry captures data by using a platform-specific SDK that you add to your appli
Sentry.init({
dsn: "<your_DSN_key>",
integrations: [new Sentry.BrowserTracing(), Sentry.replayIntegration()],
integrations: [new Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ myRouter.on("routeChange", (route) => {
// Make sure that the pageload span uses the route name
// After that, each route change should trigger a navigation span (which will automatically finish the previous one)
if (pageLoadSpan) {
pageloadSpan.updateName(route.name);
pageloadSpan.setAttribute(Sentry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, "route");
pageLoadSpan.updateName(route.name);
pageLoadSpan.setAttribute(Sentry.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, "route");
pageLoadSpan = undefined;
} else {
Sentry.startBrowserTracingNavigationSpan(client, {
Expand Down

0 comments on commit fbcc369

Please sign in to comment.