You have a small issue here in version 0.0.12 when using external tnsnames.ora wuth URL's of the from ''jdbc:oracle:thin:@tns_entry":
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1967)
at io.opentracing.contrib.jdbc.parser.AbstractURLParser.fetchDatabaseHostsFromURL(AbstractURLParser.java:39)
at io.opentracing.contrib.jdbc.parser.OracleURLParser.commonsURLParse(OracleURLParser.java:72)
at io.opentracing.contrib.jdbc.parser.OracleURLParser.parse(OracleURLParser.java:67)
You have a small issue here in version 0.0.12 when using external tnsnames.ora wuth URL's of the from ''jdbc:oracle:thin:@tns_entry":
Details: https://docs.oracle.com/en/database/oracle/oracle-database/19/jjdbc/data-sources-and-URLs.html Section 8.2.6
Consequences: Minor
Fix in fetchDatabaseHostsFromURL:
No big deal, but you might want to improve it.