Skip to content

fix: Remove glob syntax from tracePropagationTargets example #8312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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\//],
});
```