Skip to content

Commit 034857b

Browse files
committed
use top level tracePropagationTargets for vue
1 parent 3defbac commit 034857b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/platform-includes/performance/configure-sample-rate/javascript.vue.mdx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ Sentry.init({
1212
// If you only want to use custom instrumentation:
1313
// * Remove the `BrowserTracing` integration
1414
// * add `Sentry.addTracingExtensions()` above your Sentry.init() call
15-
integrations: [
16-
new Sentry.BrowserTracing({
17-
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
18-
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
19-
}),
20-
],
15+
integrations: [new Sentry.BrowserTracing()],
2116

2217
// We recommend adjusting this value in production, or using tracesSampler
2318
// for finer control
2419
tracesSampleRate: 1.0,
20+
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
21+
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
2522
});
2623
```
2724

0 commit comments

Comments
 (0)