sqltracing is a Go package for tracing database operations via an OpenTracing
tracer.
It can wrap any driver.Driver
compatible SQL driver.
It is implemented as an interceptor for simplesurance/sqlmw.
See example_test.go
- Transactions: all operations on transactions except
Commit()
andRollback()
are recorded as independent spans, instead of as child spans of theBeginTx()
operation
sqltracing and simplesurance/sqlmw are based heavily on forks and the ideas of the following projects: