-
-
Notifications
You must be signed in to change notification settings - Fork 359
Open
Labels
Description
Problem Statement
The recent useNativeInit config plugin option allows initializing Sentry on the native side via sentry.options.json before JS runs. However, there's currently no way to dynamically specify the environment field dynamically.
While calling Sentry.init() in JS allows overwriting the environment, but pre-JS crashes would still be tagged with an incorrect (hardcoded) environment.
Solution Brainstorm
- Get environment from
SENTRY_ENVIRONMENTenv variable - Get environment
environmentconfig plugin option - Dynamic config file like
sentry.options.js
Are you willing to submit a PR?
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Projects
Status
No status