-
Notifications
You must be signed in to change notification settings - Fork 98
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
Is there a way to get only some of the enhanced database reporting? #444
Comments
There is not currently a way to print queries/values without database results. I see a few possible ways to remedy this:
Do you have any other ideas or thoughts on these approaches? |
Personally, I think 4 is going to be the way to go. We will always want errors, queries, and rowCount, but not parameters or output. I guess the hard part would be how to enable/change configuration at the environment level. Would that mean that they have to be passed to the plugin? Seems like that would be a backwards-incompatible change with how the plugin format is currently |
I also like (4), because it opens the door to other fields that can passed to a single plugin. We discussed this in the past for limiting label sizes. While it would complicate the interface, I think we can avoid a backward-incompatible change by checking the value type (either |
#826 adds a Apologies for the delay here -- we should have acted sooner on this. |
In the pg plugin, the query and the values are added to the span only if enhanced database reporting is enabled. (https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/blob/master/src/plugins/plugin-pg.js#L36-L41). While we would like to have the queries reported, reporting the values and rows from the response could end up being a little too much information (think of changing a password or access token).
Is there a way around this without manually patching pg and disabling the experimental plugin?
Thanks!
The text was updated successfully, but these errors were encountered: