Skip to content

Commit

Permalink
fix: Remove glob syntax from tracePropagationTargets example (#8312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Oct 23, 2023
1 parent 648c30f commit 4a08c1a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SentrySDK.start { options in
options.dsn = "___PUBLIC_DSN___"
options.tracePropagationTargets = [
"https://myproject.org",
"https://.*.otherservice.org/.*",
"https://api.otherservice.org/",
]
}
```
Expand All @@ -19,7 +19,7 @@ SentrySDK.start { options in
options.dsn = @"___PUBLIC_DSN___";
options.tracePropagationTargets = @[
@"https://myproject.org",
@"https://.*.otherservice.org/.*"
@"https://api.otherservice.org/"
];
}];
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ If you're using the current version of our JavaScript SDK and have enabled the `
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
tracePropagationTargets: ["https://myproject.org", /^\/api\//],
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ For client-side you might have to define `tracePropagationTargets` to get around
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
tracePropagationTargets: ["https://myproject.org", /^\/api\//],
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ If you're using the current version of our Remix SDK, distributed tracing will w
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
tracePropagationTargets: ["https://myproject.org", /^\/api\//],
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ If you're using the current version of our SvelteKit SDK, distributed tracing wi
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
tracePropagationTargets: ["https://myproject.org", /^\/api\//],
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ If you're using the current version of our React Native SDK distributed tracing
```js
Sentry.init({
dsn: "___PUBLIC_DSN___",
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
tracePropagationTargets: ["https://myproject.org", /^\/api\//],
});
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
tracePropagationTargets: ["https://myproject.org", /^\/api\//],
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
```javascript
Sentry.init({
dsn: "___PUBLIC_DSN___",
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
tracePropagationTargets: ["https://myproject.org", /^\/api\//],
});
```

1 comment on commit 4a08c1a

@vercel
Copy link

@vercel vercel bot commented on 4a08c1a Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

docs.sentry.io
sentry-docs.sentry.dev
sentry-docs-git-master.sentry.dev

Please sign in to comment.