-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use same default environment #73
Comments
Since Android and iOS don't set/read the environment, RN and Flutter sessions won't contain the default/custom environment, this has to be fixed first on the Native SDKs. |
Events and Transaction have the default RN doesn't set any default environment by itself, it only passes the set env value to the native SDKs if there is any value. |
Can RN detect if it's a release or debug build? if so, we can do that, otherwise, it is |
The default value for the
environment
in the options should beproduction
. If the user sets anenvironment
, it precedes the default value. Sessions, transactions, events, etc., should all read the environment from the options. The SDK can set other default values if it detects different modes, such asdebug
ortest
.On Cocoa, we have a bug where sessions don't use the default
environment
from the options. Not setting an environment at all leads to different environments for events and transactions. Please validate that your SDK uses the correct default value:Tasks
event.environment
automatically if not specified in the options sentry-react-native#2801The text was updated successfully, but these errors were encountered: