Closed quaff closed 4 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/main/java/io/opentracing/contrib/jdbc/TracingDataSource.java | 9 | 15 | 60.0% | ||
<!-- | Total: | 9 | 15 | 60.0% | --> |
Totals | |
---|---|
Change from base Build 298: | 0.07% |
Covered Lines: | 524 |
Relevant Lines: | 1087 |
@malafeev How about this.tracer = tracer != null ? tracer : GlobalTracer.get()
and add a minimal constructor TracingDataSource(DataSource underlying)
? I will create a new PR if this merged.
Most popular DataSource provide method to get jdbc url, we should use it.