Class DbInfo
java.lang.Object
io.opentelemetry.instrumentation.jdbc.internal.dbinfo.DbInfo
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class is internal and is hence not for public use. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DbInfo.Builderbuilder()abstract io.opentelemetry.instrumentation.api.incubator.semconv.db.internal.DbServerTargetThe logical configured target for stable telemetry, ornullwhen unavailable.abstract Stringabstract Stringabstract Stringabstract Stringabstract StringThe stable/new db.system.name value (e.g., "h2database", "microsoft.sql_server").abstract Stringfinal StringgetHost()abstract StringThe parser's single host, including defaults, used for legacy telemetry and pool names.abstract IntegerThe parser's single port, including defaults, used for legacy telemetry and pool names.final StringgetName()final IntegergetPort()final Stringabstract Stringfinal Stringfinal StringgetUser()
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
DbInfo
public DbInfo()
-
-
Method Details
-
builder
-
getDbSystemName
-
getDbSystem
-
getSubtype
-
getDbConnectionString
-
getDbUser
-
getDbName
-
getDbNamespace
-
getLegacyServerAddress
-
getLegacyServerPort
-
getConfiguredServerTarget
@Nullable public abstract io.opentelemetry.instrumentation.api.incubator.semconv.db.internal.DbServerTarget getConfiguredServerTarget()The logical configured target for stable telemetry, ornullwhen unavailable. This is not the endpoint that handled an individual query. -
getSystem
-
getShortUrl
-
getUser
-
getName
-
getHost
-
getPort
-
toBuilder
-