You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add getServerAddress and getServerPort implementations to VertxSqlClientAttributesGetter
SqlClientAttributesGetter extends ServerAttributesGetter which requires
getServerAddress and getServerPort implementations for capturing server
attributes at request time.
VertxSqlClientRequest already has getHost() and getPort() methods that
extract values from SqlConnectOptions, so we can implement these methods
to properly capture server.address and server.port attributes.
Copy file name to clipboardExpand all lines: instrumentation/vertx/vertx-sql-client/vertx-sql-client-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/sql/VertxSqlClientAttributesGetter.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,18 @@ public String getDbNamespace(VertxSqlClientRequest request) {
0 commit comments