-
Notifications
You must be signed in to change notification settings - Fork 59
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
How can i populate DATADOG_INSTANCE_NAME in UploadWorker.kt? #2252
Comments
Hi @ZivStep, Thank you for your question! Based on the stack trace, it appears that If you have confirmed that Thank you! |
I call Datadog.initialize() in an SDK i am developing, my SDK initilization proccess is recommended but not guaranteed to be called in the application's onCreate. This is how i initilize datadog in my SDK
As you can see i am initilizing it with an instance name, to avoid any conflicts with any datadog instances that may be in use by my hosting app. This all works fine, however, the code for This results in the error above. |
Hi @ZivStep, Thank you for sharing your code! We've identified an issue with the |
Question
When using datadog in a library, i initilize it with an instance name but the name does not get populated into
DATADOG_INSTANCE_NAME
in theUploadWorker.kt
, this results in an exception thrown inside the worker:Since those lines
return a null instance name and the call to Datadog.getInstance(instanceName/this is always null/) throws an exception
The text was updated successfully, but these errors were encountered: