Skip to content

Fix Mongo stable DB span names#399

Draft
trask wants to merge 17 commits into
fix-db-client-stable-semconvfrom
mongo-stable-span-name-pr18982
Draft

Fix Mongo stable DB span names#399
trask wants to merge 17 commits into
fix-db-client-stable-semconvfrom
mongo-stable-span-name-pr18982

Conversation

@trask

@trask trask commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a generic DB extractor option for emitting old-semconv collection attributes
  • move Mongo collection extraction into MongoDbAttributesGetter
  • delegate Mongo stable span naming to the shared DB span-name extractor while preserving old Mongo span names

Stacked on open-telemetry#18982.

Testing

  • ./gradlew --console=plain :instrumentation-api-incubator:test --tests io.opentelemetry.instrumentation.api.incubator.semconv.db.DbClientAttributesExtractorTest
  • ./gradlew --console=plain :instrumentation-api-incubator:testStableSemconv --tests io.opentelemetry.instrumentation.api.incubator.semconv.db.DbClientAttributesExtractorTest :instrumentation-api-incubator:testBothSemconv --tests io.opentelemetry.instrumentation.api.incubator.semconv.db.DbClientAttributesExtractorTest
  • ./gradlew --console=plain :instrumentation:mongo:mongo-3.1:library:testStableSemconv :instrumentation:mongo:mongo-3.1:javaagent:testStableSemconv :instrumentation:mongo:mongo-3.1:library:test :instrumentation:mongo:mongo-3.1:javaagent:test
  • ./gradlew --console=plain :instrumentation:mongo:mongo-3.1:library:testStableSemconv :instrumentation:mongo:mongo-3.1:javaagent:testStableSemconv
  • ./gradlew --console=plain :instrumentation-api-incubator:spotlessApply :instrumentation:mongo:mongo-3.1:library:spotlessApply :instrumentation:mongo:mongo-common:testing:spotlessApply
  • git --no-pager diff --check

Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
@trask trask force-pushed the mongo-stable-span-name-pr18982 branch 4 times, most recently from 67c0797 to d307ac2 Compare June 15, 2026 04:10
@trask trask force-pushed the mongo-stable-span-name-pr18982 branch from d307ac2 to 2094916 Compare June 15, 2026 14:54
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.

2 participants