Class JdbcData
java.lang.Object
io.opentelemetry.instrumentation.jdbc.internal.JdbcData
Holds info associated with JDBC connections and prepared statements.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.instrumentation.api.field.VirtualField<Connection,DbInfo> static final io.opentelemetry.instrumentation.api.field.VirtualField<PreparedStatement,String> -
Method Summary
-
Field Details
-
connectionInfo
public static final io.opentelemetry.instrumentation.api.field.VirtualField<Connection,DbInfo> connectionInfo -
preparedStatement
public static final io.opentelemetry.instrumentation.api.field.VirtualField<PreparedStatement,String> preparedStatement
-
-
Method Details
-
intern
Returns canonical representation of db info.- Parameters:
dbInfo- db info to canonicalize- Returns:
- db info with same content as input db info. If two equal inputs are given to this method, both calls will return the same instance. This method may return one instance now and a different instance later if the original interned instance was garbage collected.
-