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

Ability to change environment at Runtime #119

Open
TheXRMonk opened this issue Jan 7, 2025 · 5 comments
Open

Ability to change environment at Runtime #119

TheXRMonk opened this issue Jan 7, 2025 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@TheXRMonk
Copy link

TheXRMonk commented Jan 7, 2025

Feature description

Many release workflows with unity follows a promotion workflow, where the build binary is promoted through different environments. Right now there's no way to "wait" with initializing the datadog client (from DatadogInitialization in DatadogAndroidPlatform.cs), until we have acquired the environment from our launch flow. And even when we get the environment, there's no way to change the settings/options that the Datadog client runs under after it has been initialized.

Proposed solution

For changing environment at runtime: It would be beneficial to have an "invalid" environment and stack up messages (like the SDK does when the user's Permission is pending), and then send once permission has been granted and environment has been set.

Other relevant information

This was already discussed here;
#103 (comment)

@TheXRMonk TheXRMonk added the enhancement New feature or request label Jan 7, 2025
@fuzzybinary fuzzybinary self-assigned this Jan 7, 2025
@TheXRMonk
Copy link
Author

Additionally, we would have the same issue with regions - we need to send data to a specific region due to regulations. Having this as a hardcoded field that we cant change at runtime almost makes this product unusable for us.

@fuzzybinary
Copy link
Member

Late initialization is definitely on our radar as something that's needed. We're looking into it, but we don't have a firm timeline on what it will be available yet.

@TheXRMonk
Copy link
Author

So does this mean that other customers are rebuilding binaries for different regions? Or is there a loophole we haven't found?

@fuzzybinary
Copy link
Member

The one customer I know of that is doing late initialization has forked the SDK and performs the native initialization late through a call in C#, as they're willing to accept loss of data from start to their initialize call.

We're looking for a more robust long term solution that will prevent such data loss but still allow late configuration.

@TheXRMonk
Copy link
Author

TheXRMonk commented Jan 15, 2025

Thanks. That's also our immediate approach👍

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

No branches or pull requests

2 participants