Skip to content

Fix Geode stable DB semconv attributes#18992

Merged
trask merged 2 commits into
open-telemetry:mainfrom
trask:geode-stable-db-semconv
Jun 15, 2026
Merged

Fix Geode stable DB semconv attributes#18992
trask merged 2 commits into
open-telemetry:mainfrom
trask:geode-stable-db-semconv

Conversation

@trask

@trask trask commented Jun 14, 2026

Copy link
Copy Markdown
Member

Built on top of #18989. Updates Geode to emit region names as stable db.collection.name while preserving the old db.name behavior for legacy database semantic conventions.

@trask trask requested a review from a team as a code owner June 14, 2026 02:25
Copilot AI review requested due to automatic review settings June 14, 2026 02:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Geode (and the shared DB semconv incubator APIs/tests) to align stable database semantic conventions with db.collection.name for “collection/region” naming, while keeping legacy db.name / db.operation behavior available for old semconv emission.

Changes:

  • Geode: emit region name via the new getDbCollectionName() hook and stop using db.namespace for region naming.
  • Incubator DB semconv: add getDbCollectionName() and a deprecated getDbOperation() hook to support separating stable vs legacy attributes.
  • Tests: update Geode and incubator DB extractor/span-name tests to validate the new attribute and span-name behavior.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
instrumentation/geode-1.4/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/geode/v1_4/PutGetTest.java Updates Geode span + metric assertions to validate stable db.collection.name and legacy db.name behavior.
instrumentation/geode-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/geode/v1_4/GeodeDbAttributesGetter.java Implements stable getDbCollectionName() for region name and keeps deprecated getDbName() for old semconv.
instrumentation-api-incubator/src/test/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientSpanNameExtractorTest.java Expands/adjusts span-name tests for stable collection-name precedence and updated SQL empty-query fallbacks.
instrumentation-api-incubator/src/test/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesExtractorTest.java Adds coverage for db.collection.name and legacy db.operation extraction.
instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesGetter.java Documents that SQL parsing should provide operation/collection when configured, discouraging overriding these getters.
instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientSpanNameExtractor.java Uses getDbCollectionName() in stable span-name fallback order; uses deprecated getDbOperation() for old semconv paths.
instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesGetter.java Adds getDbCollectionName() and deprecated getDbOperation() hooks to support stable/legacy split.
instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientAttributesExtractor.java Emits stable db.collection.name; uses getDbOperation() for legacy db.operation.

@trask trask marked this pull request as draft June 14, 2026 02:56
@trask trask force-pushed the geode-stable-db-semconv branch 2 times, most recently from b25f709 to ce90114 Compare June 15, 2026 00:48
@trask trask requested a review from Copilot June 15, 2026 01:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated no new comments.

@trask trask force-pushed the geode-stable-db-semconv branch from ce90114 to c389066 Compare June 15, 2026 04:10
@trask trask force-pushed the geode-stable-db-semconv branch from c389066 to 8f423cf Compare June 15, 2026 14:54
@trask trask requested a review from Copilot June 15, 2026 15:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@trask trask marked this pull request as ready for review June 15, 2026 16:27
@trask trask enabled auto-merge (squash) June 15, 2026 16:27
@trask trask merged commit a5d55cf into open-telemetry:main Jun 15, 2026
95 checks passed
@trask trask deleted the geode-stable-db-semconv branch June 15, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants