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

Need way to change environment at run time #591

Open
JetForMe opened this issue Sep 7, 2021 · 5 comments
Open

Need way to change environment at run time #591

JetForMe opened this issue Sep 7, 2021 · 5 comments
Assignees

Comments

@JetForMe
Copy link

JetForMe commented Sep 7, 2021

Need way to change environment at run time

There doesn't seem to be a way to change the environment used at runtime. But debug versions of our app allow the user to select whether or not they're pointing to our staging or production environments. It would be nice to be able to change DataDog's environment as well.

@odaeagle
Copy link

need this feature too, we have the exactly situation described above, it's not a deal-breaker (app store user will never be able to switch server) but definitely nice to have

@ncreated ncreated self-assigned this Sep 27, 2021
@ncreated
Copy link
Member

Hello @JetForMe @odaeagle 👋. We've been discussing this in the team and unfortunately this isn't something we're considering for close future as it seems very specific. Today, env can be only set on SDK initialization. However, please consider requesting this feature through our support channels which will help us triage its popularity and eventually jump on this earlier.

@JetForMe
Copy link
Author

Doesn't seem specific at all. I've worked at many companies that had the ability to change the targeted environment at run time. Your SDK can't even be reinitialized.

@johntmcintosh
Copy link

We are evaluating integrating DataDog and I was surprised to find that this was not a capability. Every app I've worked on has supported an internal build with an ability to modify the network environment at runtime, so not supporting a way to pass that change into the SDK is limiting for our ability to get reliable data out of the non-production environments.

@MarcelCvent
Copy link

I would like to request this as well... not only is it super common for development builds to have many selectable environments - but with regulations like GDPR it is not uncommon to have separate production environments for different regions like the EU.

Datadog themselves have multiple production environments with a separate one for the EU - so don't think that they could legitimately claim that the ability to select between multiple environments is an odd one.

The inability to reinitialize the Datadog SDK, or at least modify the environment, is extremely limiting in putting Datadog in use in many real-world situations.

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

No branches or pull requests

6 participants