Class JdbcNetworkAttributesGetter

java.lang.Object
io.opentelemetry.instrumentation.jdbc.internal.JdbcNetworkAttributesGetter
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<DbRequest,Void>

public final class JdbcNetworkAttributesGetter extends Object implements io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<DbRequest,Void>
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Constructor Details

    • JdbcNetworkAttributesGetter

      public JdbcNetworkAttributesGetter()
  • Method Details

    • getServerAddress

      @Nullable public String getServerAddress(DbRequest request)
      Specified by:
      getServerAddress in interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<DbRequest,Void>
    • getServerPort

      @Nullable public Integer getServerPort(DbRequest request)
      Specified by:
      getServerPort in interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<DbRequest,Void>