Skip to content

Support db.system.name in vertx sql instrumentation#16254

Merged
trask merged 5 commits intoopen-telemetry:mainfrom
trask:vertx-db-system-name
Mar 27, 2026
Merged

Support db.system.name in vertx sql instrumentation#16254
trask merged 5 commits intoopen-telemetry:mainfrom
trask:vertx-db-system-name

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Feb 22, 2026

No description provided.

@trask trask force-pushed the vertx-db-system-name branch from 5cbd0bc to e97bcc8 Compare March 24, 2026 16:42
@trask trask marked this pull request as ready for review March 24, 2026 19:08
@trask trask requested a review from a team as a code owner March 24, 2026 19:08
// TODO do better in
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/16254
return DOUBLE_QUOTES_ARE_STRING_LITERALS;
switch (request.getDbSystemName()) {
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.

should we try to somehow share this with jdbc?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

let me come back to this after #16277, in the meantime I've added it to the TODO list in #12608

@Override
@Nullable
public String getDbSystem(VertxSqlClientRequest request) {
// preserving old behavior: db.system was never set for vertx sql client
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.

I think it would be fine to stat emitting the db system. I guess the only concern would be that the db system names in old and new semconv are different for some databases.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah, I can add the mapping here if you'd like, otherwise I'm also ok with leaving the old behavior alone

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.

we can leave the old behavior if it is easier

@trask trask merged commit a8e4fef into open-telemetry:main Mar 27, 2026
93 checks passed
@trask trask deleted the vertx-db-system-name branch March 27, 2026 15:10
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