Skip to content

Commit

Permalink
use correct BrowserTracing import
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Jul 17, 2023
1 parent f93c727 commit 25e03ec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ If you're using the current version of our JavaScript SDK and have enabled the `
```js
Sentry.init({
dsn: "__DSN__",
integrations: [new BrowserTracing()],
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For client-side you might have to define `tracePropagationTargets` to get around
// sentry.client.config.js
Sentry.init({
dsn: "__DSN__",
integrations: [new BrowserTracing()],
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ If you're using the current version of our Remix SDK, distributed tracing will w
// entry.client.tsx
Sentry.init({
dsn: "__DSN__",
integrations: [new BrowserTracing()],
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
If you're using the current version of our SvelteKit SDK, distributed tracing will work out of the box for the client and server runtimes. To get around possible [Browser CORs](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues, you should define `tracePropagationTargets` for client-side.



```js
// hooks.client.js
Sentry.init({
dsn: "__DSN__",
integrations: [new BrowserTracing()],
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```javascript
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new BrowserTracing()],
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
Expand Down

0 comments on commit 25e03ec

Please sign in to comment.