Skip to content

Mongo Metadata and instrumenter refactor#15500

Merged
trask merged 10 commits intoopen-telemetry:mainfrom
jaydeluca:mongo-metadata
Dec 4, 2025
Merged

Mongo Metadata and instrumenter refactor#15500
trask merged 10 commits intoopen-telemetry:mainfrom
jaydeluca:mongo-metadata

Conversation

@jaydeluca
Copy link
Copy Markdown
Member

While enabling metric assertions, I noticed that all mongo instrumentation modules were all emitting telemetry with the mongo-3.1 scope, so I refactored the instrumenters to use a factory instead of the builder directly so that we could customize the name per module.

Part of #14096

@jaydeluca jaydeluca requested a review from a team as a code owner December 1, 2025 15:56
@trask
Copy link
Copy Markdown
Member

trask commented Dec 1, 2025

looks like potentially related latest dep test failure

:instrumentation:mongo:mongo-async-3.3:javaagent:testStableSemconv FAILED

Comment thread instrumentation/mongo/mongo-async-3.3/javaagent/build.gradle.kts Outdated
description: |
Enables statement sanitization for MongoDB queries. Takes precedence over otel.instrumentation.common.db-statement-sanitizer.enabled.
type: boolean
default: true
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.

it should default to the value of otel.instrumentation.common.db-statement-sanitizer.enabled but using true should be fine too

@trask trask enabled auto-merge (squash) December 4, 2025 22:33
@trask trask merged commit 9b8a87b into open-telemetry:main Dec 4, 2025
85 checks passed
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