sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

React Native show how to set Platform.OS as Environment

Open thinkocapo opened this issue 2 years ago • 4 comments

Core or SDK?

Platform/SDK

Which part? Which one?

React Native

Description

It'd be great to have a mention in React Native's Config.Environment docs that you can set the OS. Optional https://docs.sentry.io/platforms/react-native/configuration/environments/

Why: Crash Free Rates cannot bet separated by OS (Android vs iOS) in Dashboard Widgets as well as Release Health.

The SDK.environment attribute is one place you could set

production-android
production-ios

to indicate it.

Sentry.sdk({ environment: Platform.OS })

Suggested Solution

mention it here https://docs.sentry.io/platforms/react-native/configuration/environments/

thinkocapo avatar Sep 20 '23 12:09 thinkocapo

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Sep 20 '23 12:09 getsantry[bot]

Routing to @getsentry/product-owners-docs for triage ⏲️

getsantry[bot] avatar Sep 20 '23 20:09 getsantry[bot]

Routing to @getsentry/product-owners-sdks-mobile for triage ⏲️

getsantry[bot] avatar Sep 21 '23 21:09 getsantry[bot]

Let's add to the troubleshooting page and note the possible side effects like notifications...

krystofwoldrich avatar Mar 15 '24 13:03 krystofwoldrich