Skip to content

Commit 7e79850

Browse files
ref(react-native): Add missing logsOrigin and log list. (#15618)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR Formats the React Native option docs so it have a group list for logs, additionally, adds the missing logsOrigin. ## 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 --> - [x] 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:* - [ ] 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) ## LEGAL BOILERPLATE ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) Close getsentry/sentry-react-native#5357 --------- Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
1 parent 0454de5 commit 7e79850

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/platforms/react-native/configuration/options.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,29 @@ _(New in version 5.3.0)_
172172

173173
</SdkOption>
174174

175+
## Logs Options
176+
177+
<SdkOption name="enableLogs">
178+
179+
Set this option to `true` to enable log capturing in Sentry. The logger APIs will only send logs to Sentry when this is turned on.
180+
181+
</SdkOption>
182+
183+
<SdkOption name="beforeSendLog">
184+
185+
This function is called with a log object, and can return a modified log object, or `null` to skip sending this log to Sentry. This can be used, for instance, for manual PII stripping before sending, or to add custom attributes to all logs.
186+
187+
</SdkOption>
188+
189+
<SdkOption name="logsOrigin">
190+
191+
Allows the choice of which logs are captured: `native` for logs from native code only, `js` for logs from the JavaScript layer only, or `all` for both layers.
192+
- It will only Take effect when `enableLogs` is `true`.
193+
194+
(New in version 7.7.0)
195+
196+
</SdkOption>
197+
175198
## Integration Configuration
176199

177200
For many platform SDKs integrations can be configured alongside it. On some platforms that happen as part of the `init()` call, in some others, different patterns apply.

0 commit comments

Comments
 (0)