-
Notifications
You must be signed in to change notification settings - Fork 1k
Implement db.query.summary for SqlClientAttributesExtractor
#15548
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
base: main
Are you sure you want to change the base?
Conversation
f299e7c to
c5970ae
Compare
| equalTo( | ||
| DbAttributes.DB_QUERY_SUMMARY, | ||
| emitStableDatabaseSemconv() ? "CALL" : null)), |
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.
should this be CALL NEXT VALUE?
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.
I think it would be better to call it CALL Customer_SEQ or maybe CALL NEXT VALUE FOR Customer_SEQ. Having the summary contain the sequence name feels more informative. The sample summaries in the spec also contain the table names.
e761302 to
69592b0
Compare
ef34cbd to
a93e84c
Compare
5e17083 to
ca07ae2
Compare
f59b245 to
ec8f197
Compare
db.query.summary for SqlClientAttributesExtractor
160b838 to
09ad46d
Compare
2fb7a05 to
3c6ae79
Compare
Cherry-picked non-test files from PR #15548
Cherry-picked non-test files from PR #15548
- Updated imports to use emitStableDatabaseSemconv() and DB_QUERY_SUMMARY - Added AttributeAssertion and ArrayList imports - Added attributeAssertions() helper method for reusable attribute checks - Updated span names to conditionally use table name vs db name based on stable semconv - Replaced inline attribute assertions with calls to helper method - Updated error test to use new helper method with dynamic error attributes Co-authored-by: trask <[email protected]>
No description provided.