-
Notifications
You must be signed in to change notification settings - Fork 309
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
[OpenTelemetry] Can we add the db.query.text
attribute to the spans?
#2042
Comments
+1 This would be a great addition to help us identify which span is related to which of our queries in a much faster way. |
This would be great, @chelsea-lin can you let us know if you would accept a PR for this? |
Hoi 👋 Friendly ping 🏓 😃 |
@Kludex Thank you! It sounds good to me! Please go ahead to start the PR please. |
Thank you @Kludex for the feature request and implementation! I also appreciate people upvoting the FR and letting us know your need :) |
It can be an |
@Linchin including the SQL in otel is absolutely necessary, every other db integration includes the SQL. If you're really saying "we're not going to include the query", you're basically saying "we refuse to support otel with bigquery". |
If we were to go through privacy review for query text anyway, are there any other things folks would like to track too? Suggestions are welcome. |
Hoi 👋 Friendly ping 🏓 😃 |
Hi, thanks for the reminder. I'm currently in the process of figuring out Google Cloud's privacy requirement with this. Once we are clear on the steps needed to take, I will provide a timeline for adding this feature :) At the same time, feel free to nominate any other OpenTelemetry fields you think we should add, and we can support them in the same batch! |
Hi there,
I was wondering if it would be possible to add the query itself in the span attributes. The list of official OTel attributes for db are listed here.
I'm happy to implement it, if wanted.
The text was updated successfully, but these errors were encountered: