Skip to content
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

feat(rn): Add Tracing without Performance docs #7602

Merged
merged 6 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -2,7 +2,7 @@ If you're using the current version of our JavaScript SDK and have enabled the `

```js
Sentry.init({
dsn: "__DSN__",
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ For client-side you might have to define `tracePropagationTargets` to get around
```js
// sentry.client.config.js
Sentry.init({
dsn: "__DSN__",
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
Expand Down
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 Remix SDK, distributed tracing will w
```tsx
// entry.client.tsx
Sentry.init({
dsn: "__DSN__",
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
Expand Down
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 SvelteKit SDK, distributed tracing wi
```js
// hooks.client.js
Sentry.init({
dsn: "__DSN__",
dsn: "___PUBLIC_DSN___",
integrations: [new BrowserTracing()],
tracePropagationTargets: [
"https://myproject.org",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
If you're using the current version of our React Native SDK distributed tracing will work out of the box.

```js
Sentry.init({
dsn: "___PUBLIC_DSN___",
tracePropagationTargets: [
"https://myproject.org",
"https://.*.otherservice.org/.*",
],
});
```

If you're using version `5.9.x` or below, you'll need to have our <PlatformLink to="/performance/">performance monitoring feature enabled</PlatformLink> in order for distributed tracing to work.
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be 5.8.x or below? The release notes for sentry-react-native 5.9.0 say you don't need perf monitoring

Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<Alert level="Info" title="Prior Versions">
Tracing is enabled by default in the React Native SDK.

If you use a version of our SDK prior to version `3.0.0`, you will need to include the `ReactNativeTracing` integration to use automatic instrumentation. You do not need to do this in versions `3.0.0` and above.

</Alert>
<Expandable title="Using older Sentry for React Native? Here is how to enabled Tracing">

<SignInNote />
If you use a version of our SDK prior to version `3.0.0`, you will need to include the `ReactNativeTracing` integration to use automatic instrumentation. You do not need to do this in versions `3.0.0` and above.

```javascript
import * as Sentry from "@sentry/react-native";
Expand All @@ -15,3 +13,5 @@ Sentry.init({
integrations: [new Sentry.ReactNativeTracing()],
});
```

</Expandable>