Skip to content

Commit 690cbfb

Browse files
Logs(React-Native) Remove logs from experimental (#14788)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* Version 7.0.0 will no longer have logs as experimental, this PR updates the logs docs to move the options away from experimental. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [x] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent b33022a commit 690cbfb

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

platform-includes/logs/options/react-native.mdx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
#### beforeSendLog
22

3-
To filter logs, or update them before they are sent to Sentry, you can use the `_experiments.beforeSendLog` option.
3+
To filter logs, or update them before they are sent to Sentry, you can use the `beforeSendLog` option.
44

55
```js
66
Sentry.init({
77
dsn: "___PUBLIC_DSN___",
8-
_experiments: {
9-
enableLogs: true,
10-
beforeSendLog: (log) => {
11-
if (log.level === "info") {
12-
// Filter out all info logs
13-
return null;
14-
}
8+
enableLogs: true,
9+
beforeSendLog: (log) => {
10+
if (log.level === "info") {
11+
// Filter out all info logs
12+
return null;
13+
}
1514

16-
return log;
17-
},
15+
return log;
1816
},
1917
});
2018
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<VersionRequirement product="Logs for React Native" sdk="Sentry React Native SDK" minVersion="7.0.0-beta.1" />
1+
<VersionRequirement product="Logs for React Native" sdk="Sentry React Native SDK" minVersion="7.0.0" />
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
To enable logging, you need to initialize the SDK with the `_experiments.enableLogs` option set to `true`.
1+
To enable logging, you need to initialize the SDK with the `enableLogs` option set to `true`.
22

33
```js
44
Sentry.init({
55
dsn: "___PUBLIC_DSN___",
66
// Enable logs to be sent to Sentry
7-
_experiments: { enableLogs: true },
7+
enableLogs: true,
88
});
99
```

0 commit comments

Comments
 (0)