Skip to content

Commit

Permalink
Add comment to JDBC DataSource instrumentation (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored May 11, 2021
1 parent 871f9a0 commit 1086bce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public static void start(
@Advice.This DataSource ds,
@Advice.Local("otelContext") Context context,
@Advice.Local("otelScope") Scope scope) {
// TODO this is very strange condition
if (!Java8BytecodeBridge.currentSpan().getSpanContext().isValid()) {
// Don't want to generate a new top-level span
// this instrumentation is already very noisy, and calls to getConnection outside of an
// existing trace do not tend to be very interesting
return;
}

Expand Down

0 comments on commit 1086bce

Please sign in to comment.