Class JdbcConnectionUrlParser

java.lang.Object
io.opentelemetry.instrumentation.jdbc.internal.JdbcConnectionUrlParser

public final class JdbcConnectionUrlParser extends Object
Parses JDBC connection URLs to extract database connection information.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Method Details

    • parse

      public static DbInfo parse(String connectionUrl, Properties props)
      Parse a JDBC connection URL and extract database connection information.
      Parameters:
      connectionUrl - the JDBC connection URL
      props - optional connection properties
      Returns:
      the parsed DbInfo, or DbInfo.DEFAULT for null/invalid non-JDBC inputs; parser failures return the best-effort result accumulated before the failure