Skip to content

Mongo using AsyncIOMotorClient does not seem to work #99

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

Closed
3x0dv5 opened this issue Mar 4, 2024 · 2 comments
Closed

Mongo using AsyncIOMotorClient does not seem to work #99

3x0dv5 opened this issue Mar 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@3x0dv5
Copy link

3x0dv5 commented Mar 4, 2024

I wonder if anyone out there managed to get Dynatrace to work with AsyncIOMotorClient, like when we use Beanie.
It seems that in the Listener the oneage.get_sdk().tracecontext_get_current() is always empty, it's like OneAgent loses track of the current trace context.
Have you guys also seen this?

@3x0dv5 3x0dv5 added the enhancement New feature or request label Mar 4, 2024
@dlopes7
Copy link
Collaborator

dlopes7 commented May 11, 2024

@3x0dv5 I've added initial support for asyncio in 2.1.0, can you update and test?

Please make sure to also run the app with the environment variable

AUTODYNATRACE_INSTRUMENT_CONCURRENT=True

Because threads need to be instrumented for the correlation to work

@3x0dv5
Copy link
Author

3x0dv5 commented May 15, 2024

The Dynatrace guys that support our organization said that this is not feasible and that we would need to look into use open telemetry.
In Dynatrace/OneAgent-SDK-for-Python#36 @Oberon00 mentions the same as the Dynatrace guys told me, the context is in a single thread.

In the meantime we put this on hold, I will come back to you once we resume the work on this space.
Thanks!

@3x0dv5 3x0dv5 closed this as completed May 15, 2024
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