-
Notifications
You must be signed in to change notification settings - Fork 395
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
[mongodb] Fix pymongo query metadata #706
Conversation
looks like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes, but otherwise looking good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting the span_type
to 'mongodb
and having the query set on the 'mongo.query'
tag should have the trace agent obfuscate the query. Was this still not working?
Other than that looks good to me.
@Kyle-Verhoog from my basic testing, yeah, didn't seem like it was working :/ |
* [pymongo] use _Query.name if available otherwise defaul to 'query' * [pymongo] set mongodb.query tag * Update test for `_Query.name` change * Add test for query tag * Refactor query command metadata * Fix mongoengine tests * Pull import up * Add comments
_Query.name
if it is available for more accurate command names, since v3.1.mongodb.query
tag to ensure the query is shown in the UIWe also need to check in on the obfuscator for
mongodb.query
, it did not appear to work when I ran it locally, so I needed to usenormalize_filter(cmd.query)