From 13ba6c707c54c29ff5c385f65e26390c8eaab78e Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 18 Sep 2024 09:23:41 +0200 Subject: [PATCH] ref(js): Adjust and update JS transaction grouping example code --- .../performance/group-transaction-example/javascript.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform-includes/performance/group-transaction-example/javascript.mdx b/platform-includes/performance/group-transaction-example/javascript.mdx index 932f4383cd9a1..9022de50fc804 100644 --- a/platform-includes/performance/group-transaction-example/javascript.mdx +++ b/platform-includes/performance/group-transaction-example/javascript.mdx @@ -1,7 +1,7 @@ ```javascript -// All JavaScript-based SDKs include this function, so it's safe to replace `@sentry/node` +// All JavaScript-based SDKs include this function, so it's safe to replace `@sentry/browser` // with your particular SDK -import { addEventProcessor } from "@sentry/node"; +import { addEventProcessor } from "@sentry/browser"; addEventProcessor((event) => { if (event.type === "transaction") { @@ -11,7 +11,7 @@ addEventProcessor((event) => { }); ``` -For browser JavaScript applications using the `BrowserTracing` integration, the `beforeStartSpan` option can be used to better group `navigation`/`pageload` transactions together based on URL. +For browser JavaScript applications using `browserTracingIntegration` integration, the `beforeStartSpan` option can be used to better group `navigation`/`pageload` transactions together based on URL. ```javascript import * as Sentry from "@sentry/browser";