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

mongo DB instrumentation doesn't capture db.statement properly #1462

Closed
avzis opened this issue Nov 21, 2022 · 0 comments · Fixed by #1512
Closed

mongo DB instrumentation doesn't capture db.statement properly #1462

avzis opened this issue Nov 21, 2022 · 0 comments · Fixed by #1512
Labels
bug Something isn't working

Comments

@avzis
Copy link
Contributor

avzis commented Nov 21, 2022

According to the specs - db.statement should capture the entire request, and not only the command name.

Steps to reproduce
Instrument a client using PymongoInstrumentor.
Send a request to the db.

What is the expected behavior?
Produce a span with a db.statement value containing the whole request.

What is the actual behavior?
Produce a span with db.statement containing only the request name.

Additional context
Another discussion here

Another thing that needs to be fixed is adding the ability to hide the db.statement value on demand, in order to hide sensitive data when needed.

If you can, assign this to me - I would like to solve it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant