Skip to content

Commit c1d34c7

Browse files
authored
ref(js): Adjust and update JS transaction grouping example code (#11388)
1 parent b02c3ea commit c1d34c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform-includes/performance/group-transaction-example/javascript.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```javascript
2-
// All JavaScript-based SDKs include this function, so it's safe to replace `@sentry/node`
2+
// All JavaScript-based SDKs include this function, so it's safe to replace `@sentry/browser`
33
// with your particular SDK
4-
import { addEventProcessor } from "@sentry/node";
4+
import { addEventProcessor } from "@sentry/browser";
55

66
addEventProcessor((event) => {
77
if (event.type === "transaction") {
@@ -11,7 +11,7 @@ addEventProcessor((event) => {
1111
});
1212
```
1313

14-
For browser JavaScript applications using the `BrowserTracing` integration, the `beforeStartSpan` option can be used to better group `navigation`/`pageload` transactions together based on URL.
14+
For browser JavaScript applications using `browserTracingIntegration` integration, the `beforeStartSpan` option can be used to better group `navigation`/`pageload` transactions together based on URL.
1515

1616
```javascript
1717
import * as Sentry from "@sentry/browser";

0 commit comments

Comments
 (0)