Class JdbcData


  • public final class JdbcData
    extends Object
    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 Detail

      • 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 Detail

      • intern

        public static DbInfo intern​(DbInfo dbInfo)
        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.