Class JdbcConnectionUrlParser
java.lang.Object
io.opentelemetry.instrumentation.jdbc.internal.JdbcConnectionUrlParser
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 Summary
Modifier and TypeMethodDescriptionstatic DbInfoparse(String connectionUrl, Properties props) Parse a JDBC connection URL and extract database connection information.
-
Method Details
-
parse
Parse a JDBC connection URL and extract database connection information.- Parameters:
connectionUrl- the JDBC connection URLprops- 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
-