OS: MacOS
_Platform:_
SDK:
@sentry/react-nativeI have following issue:
You can't set a env for example I want one for development, QA and Prod using theses docs https://docs.sentry.io/enriching-error-data/environments/?platform=native
There doesn't seem to be a way to do this with this SDK? Is this going to be added soon?
I believe this could be done using addGlobalEventProcessor, for example:
Sentry.addGlobalEventProcessor((event, hint) => {
event.environment = "QA";
return event;
});
@wodCZ Amazing! It works thank you for this, I think this should be added to the docs
@ThomasLarge There is now property on Sentry.init({ environment: 'staging' }), which can set environment directly without mentioned workaround, but i suspect that somehow it does not work always, as i have some recent issues w/o environment set while all issues should have it. Do You still use workaround or You migrated to property of Sentry.init()?
Most helpful comment
I believe this could be done using
addGlobalEventProcessor, for example: