Class DbInfo

java.lang.Object
io.opentelemetry.instrumentation.jdbc.internal.dbinfo.DbInfo

public abstract class DbInfo extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Field Details

    • DEFAULT

      public static final DbInfo DEFAULT
  • Constructor Details

    • DbInfo

      public DbInfo()
  • Method Details

    • builder

      public static DbInfo.Builder builder()
    • getDbSystemName

      @Nullable public abstract String getDbSystemName()
      The stable/new db.system.name value (e.g., "h2database", "microsoft.sql_server").
    • getDbSystem

      @Nullable public abstract String getDbSystem()
    • getSubtype

      @Nullable public abstract String getSubtype()
    • getDbConnectionString

      @Nullable public abstract String getDbConnectionString()
    • getDbUser

      @Nullable public abstract String getDbUser()
    • getDbName

      @Nullable public abstract String getDbName()
    • getDbNamespace

      @Nullable public abstract String getDbNamespace()
    • getLegacyServerAddress

      @Nullable public abstract String getLegacyServerAddress()
      The parser's single host, including defaults, used for legacy telemetry and pool names.
    • getLegacyServerPort

      @Nullable public abstract Integer getLegacyServerPort()
      The parser's single port, including defaults, used for legacy telemetry and pool names.
    • getConfiguredServerTarget

      @Nullable public abstract io.opentelemetry.instrumentation.api.incubator.semconv.db.internal.DbServerTarget getConfiguredServerTarget()
      The logical configured target for stable telemetry, or null when unavailable. This is not the endpoint that handled an individual query.
    • getSystem

      @Nullable public final String getSystem()
    • getShortUrl

      @Nullable public final String getShortUrl()
    • getUser

      @Nullable public final String getUser()
    • getName

      @Nullable public final String getName()
    • getHost

      @Nullable public final String getHost()
    • getPort

      @Nullable public final Integer getPort()
    • toBuilder

      public DbInfo.Builder toBuilder()