opentracing-contrib / java-jdbc

OpenTracing Instrumentation for JDBC
Apache License 2.0
82 stars 56 forks source link

tracing configuration question #3

Closed ribrewguy closed 7 years ago

ribrewguy commented 7 years ago

How can I limit the tracing such that it will only trace within an existing span?

malafeev commented 7 years ago

Do you mean that if there is no active span then don't trace jdbc call?

ribrewguy commented 7 years ago

Right. I'm only interested in JDBC calls within the context of larger requests. However, the way it is setup, it shows every call to the DB in isolation.

tedsuo commented 7 years ago

Seems pretty reasonable, I imagine there are other libraries that would want this as well.

tedsuo commented 7 years ago

Conversation happening in gitter on this btw https://gitter.im/opentracing/public

malafeev commented 7 years ago

done, introduced property traceWithActiveSpanOnly=true