DataDog / dd-sdk-android

Datadog SDK for Android (Compatible with Kotlin and Java)
Apache License 2.0
154 stars 60 forks source link

Lazy + changeable site/region selection #1090

Open hirschbp opened 2 years ago

hirschbp commented 2 years ago

Is your feature request related to a problem? Please describe. We have the case that the region/site is not known on app launch but selected by the user later. A user might even log out and into a different account which could mean a switch of regions during app runtime. Currently the library does only support setting the site during initialization and does not support changing it afterwards.

Describe the solution you'd like

Describe alternatives you've considered

0xnm commented 2 years ago

Hello @hirschbp! Thanks for the feature suggestion.

To better understand the priority of this feature, can you please tell us what is the reasoning behind changing the Datadog region when switching user accounts: is it some multi-branding application or this need is related to some legal regulations (like data storage in US vs EU region), or maybe something else (like different backends for different accounts)?

hirschbp commented 2 years ago

It is related to legal regulations, exactly as you mentioned: data storage in US vs EU region.