Closed safris closed 4 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/main/java/io/opentracing/contrib/jdbc/TracingDriver.java | 32 | 37 | 86.49% | ||
<!-- | Total: | 32 | 37 | 86.49% | --> |
Totals | |
---|---|
Change from base Build 178: | 1.3% |
Covered Lines: | 421 |
Relevant Lines: | 897 |
This PR adds "interceptor mode" to the
TracingDriver
. The "interceptor mode" is described in the README.md.The "interceptor mode" behavior is deactivated by default, which means that the
TracingDriver
works in the same way as before. Only by callingTracingDriver.setInterceptorMode(true)
will the "interceptor mode" be activated.A few other modifications are a part of this PR:
TracingDriver.load()
, which returns theTracerDriver
singleton instance. The existence of this method will greatly simplify this code, which obtains the singleton instance via theDriverManager
.Driver
is returned fromDriverManager
:JdbcTest.assertGetDriver(connection)
.I have bumped the version of the
java-jdbc
module to0.2.0
.