Skip to content

React Native show how to set Platform.OS as EnvironmentΒ #7886

Open
@thinkocapo

Description

@thinkocapo

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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions