From fbcc3696d579b181a19ac0b1658a6943e7844bef Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Wed, 21 Feb 2024 10:57:18 +0100 Subject: [PATCH] fix: Small fixes to JS browser tracing docs (#9190) --- .../integrate-frontend/initialize-sentry-sdk.mdx | 2 +- .../automatic-instrumentation-custom-routing/javascript.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx b/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx index d64e3f9c74eff..a9d3feb4599f4 100644 --- a/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx +++ b/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx @@ -46,7 +46,7 @@ Sentry captures data by using a platform-specific SDK that you add to your appli Sentry.init({ dsn: "", - 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. diff --git a/platform-includes/performance/automatic-instrumentation-custom-routing/javascript.mdx b/platform-includes/performance/automatic-instrumentation-custom-routing/javascript.mdx index 0eb3bfa0f410a..b0dc27ff61595 100644 --- a/platform-includes/performance/automatic-instrumentation-custom-routing/javascript.mdx +++ b/platform-includes/performance/automatic-instrumentation-custom-routing/javascript.mdx @@ -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, {