Interface DbClientAttributesGetter<REQUEST>
- All Superinterfaces:
DbClientCommonAttributesGetter<REQUEST>
An interface for getting database client attributes.
Instrumentation authors will create implementations of this interface for their specific
library/framework. It will be used by the DbClientAttributesExtractor to obtain the
various database client attributes in a type-generic way.
If an attribute is not available in this library, it is appropriate to return null
from the attribute methods, but implement as many as possible for best compliance with the
OpenTelemetry specification.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetOperation(REQUEST request) default StringgetStatement(REQUEST request) default StringDeprecated.default StringDeprecated.UsegetStatement(Object)instead.Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.db.DbClientCommonAttributesGetter
connectionString, getConnectionString, getName, getSystem, getUser, name, system, user
-
Method Details
-
getStatement
-
statement
Deprecated.UsegetStatement(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getOperation
-
operation
Deprecated.UsegetOperation(Object)instead.This method is deprecated and will be removed in the subsequent release.
-
getOperation(Object)instead.