Skip to content

Commit 3b92530

Browse files
fix(react-native) tracingOrigins was renamed to tracePropagationTargets (#6298)
1 parent ef03db8 commit 3b92530

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/platform-includes/performance/enable-tracing/react-native.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Sentry.init({
1212

1313
integrations: [
1414
new Sentry.ReactNativeTracing({
15-
tracingOrigins: ["localhost", "my-site-url.com", /^\//],
15+
tracePropagationTargets: ["localhost", "my-site-url.com", /^\//],
1616
// ... other options
1717
}),
1818
],

src/platform-includes/performance/tracePropagationTargets-example/react-native.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ For example:
33
- A frontend application is served from `example.com`
44
- A backend service is served from `api.example.com`
55
- The frontend application makes API calls to the backend
6-
- Therefore, the option needs to be configured like this: `new Sentry.ReactNativeTracing({tracingOrigins: ['api.example.com']})`
6+
- Therefore, the option needs to be configured like this: `new Sentry.ReactNativeTracing({tracePropagationTargets: ['api.example.com']})`
77
- Now outgoing XHR/fetch requests to `api.example.com` will get the `sentry-trace` header attached
88

99
```javascript
1010
Sentry.init({
1111
dsn: "___PUBLIC_DSN___",
1212
integrations: [
1313
new Sentry.ReactNativeTracing({
14-
tracingOrigins: ["localhost", "my-site-url.com"],
14+
tracePropagationTargets: ["localhost", "my-site-url.com"],
1515
}),
1616
],
1717

0 commit comments

Comments
 (0)