Skip to content

Merge network/server getter methods into DB attribute getters#16264

Merged
trask merged 3 commits intoopen-telemetry:mainfrom
trask:db-getters
Feb 26, 2026
Merged

Merge network/server getter methods into DB attribute getters#16264
trask merged 3 commits intoopen-telemetry:mainfrom
trask:db-getters

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Feb 23, 2026

Following pattern from HTTP instrumentations.

…rt fallback

Under stable semconv, when db.namespace/collection/stored_procedure are null,
the span name now includes server.address:server.port as the target. Updated
jedis-1.4, jedis-3.0, and influxdb-2.4 tests to expect the new span name
format conditionally based on emitStableDatabaseSemconv().
span ->
span.hasName("WRITE")
span.hasName(
emitStableDatabaseSemconv() ? "WRITE " + host + ":" + port : "WRITE")
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.

didn't expect this, but we get better span names!

Comment on lines -14 to -24
@Nullable
@Override
public String getServerAddress(VertxSqlClientRequest request) {
return request.getHost();
}

@Nullable
@Override
public Integer getServerPort(VertxSqlClientRequest request) {
return request.getPort();
}
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.

these already existed in VertxSqlClientAttributesGetter

@trask trask merged commit 05a4303 into open-telemetry:main Feb 26, 2026
159 of 163 checks passed
@trask trask deleted the db-getters branch February 26, 2026 15:08
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