Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Dec 5, 2025

No description provided.

@trask trask force-pushed the db-query-summary-sql branch 5 times, most recently from f299e7c to c5970ae Compare December 6, 2025 15:44
Comment on lines 155 to 157
equalTo(
DbAttributes.DB_QUERY_SUMMARY,
emitStableDatabaseSemconv() ? "CALL" : null)),
Copy link
Member Author

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?

Copy link
Contributor

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.

@trask trask force-pushed the db-query-summary-sql branch 3 times, most recently from e761302 to 69592b0 Compare December 9, 2025 00:28
@trask trask force-pushed the db-query-summary-sql branch 2 times, most recently from ef34cbd to a93e84c Compare December 20, 2025 16:54
@trask trask force-pushed the db-query-summary-sql branch 2 times, most recently from 5e17083 to ca07ae2 Compare January 13, 2026 19:37
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Jan 13, 2026
@trask trask force-pushed the db-query-summary-sql branch 14 times, most recently from f59b245 to ec8f197 Compare January 15, 2026 02:03
@trask trask changed the title Implement db.query.summary for SqlClientAttributesExtractor Implement db.query.summary for SqlClientAttributesExtractor Jan 15, 2026
@trask trask force-pushed the db-query-summary-sql branch 10 times, most recently from 160b838 to 09ad46d Compare January 17, 2026 02:48
@trask trask force-pushed the db-query-summary-sql branch from 2fb7a05 to 3c6ae79 Compare January 17, 2026 03:07
Copilot AI added a commit that referenced this pull request Jan 17, 2026
Cherry-picked non-test files from PR #15548
Copilot AI added a commit that referenced this pull request Jan 17, 2026
Copilot AI added a commit that referenced this pull request Jan 17, 2026
- 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants