-
Notifications
You must be signed in to change notification settings - Fork 183
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
Evaluate requirement level of db.statement #754
Comments
I'm in favor of option 3:
|
it would be nice to give instrumentation the option to sanitize if they want, e.g. Java instrumentation already implements sanitization which is pretty nice for people not using the collector how could we incorporate this into option 3? e.g. allow instrumentation to sanitize and emit similar thought for sanitization that occurs on the collector, should it emit |
Maybe |
Yes this is our use case so +1 on the option |
I like option 3 as well, though I think we should hold off on implementing it in case a more generalized solution comes out of #128, and also because I think we can add this post-stability |
The db.statement attribute currently has a requirement level of recommended, with a footnote that reads:
This requires that we elaborate on the definition of sanitization (and maybe define a standard algorithm for sanitization). Generally, this increases instrumentation complexity.
In the 2/16/2024 db semconv working group, we discussed a number of possible options:
(1) db.statement is conditionally required
(2) Capture db.statement OR db.statement_template
(3) Capture db.statement AND (bool) db.is_parameterized_statement
The options with a single statement attribute (1 & 3) make it easier to dashboards because the content is always in the same place, but make it harder to express the requirement level rules. Option 2 has simpler rules for requirement levels, but dashboards have to look in two places for the information.
The text was updated successfully, but these errors were encountered: