Skip to content
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

Add ability to change environment after initialisation #202

Open
JamesW-iOS opened this issue Feb 28, 2024 · 0 comments
Open

Add ability to change environment after initialisation #202

JamesW-iOS opened this issue Feb 28, 2024 · 0 comments

Comments

@JamesW-iOS
Copy link

We've recently integrated the SDK into our iOS app. One issue we've encountered is that we don't seem to be able to update the environment after the reporter is built. Our app has the ability to change region at runtime and we use different Splunk environments for the different regions.

I have attempted to do this by updating the global attribute environment but this doesn't seem to affect which environment the events are logged in. This is the call we're making

SplunkRum.setGlobalAttributes(["environment": [OUR_ENVIRONMENT_NAME]])

Would be really useful if there was a way to update this at runtime or if there is a way and I'm just holding it wrong. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant