Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 816 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 816 Bytes

brave-instrumentation-p6spy

This includes a tracing event listener for P6Spy (a proxy for calls to your JDBC driver). It reports to Zipkin how long each statement takes, along with relevant tags like the query.

P6Spy requires a spy.properties in your application classpath (ex src/main/resources). brave.p6spy.TracingP6Factory must be in the modulelist to enable tracing.

modulelist=brave.p6spy.TracingP6Factory
url=jdbc:p6spy:derby:memory:p6spy;create=true

By default the service name corresponding to your database is the name of the database, but you can add another property to spy.properties named zipkinServiceName to customise it.

The current tracing component is used at runtime. Until you have instantiated brave.Tracing, no traces will appear.