sql

database/sql

SQLCommenter provides drop-in replacement for go’s database/sql library. You can start using the SQLcommenter’s database/sql without changing your business logic code and use one of the framework instrumentation to proapagate tags and traceparent to the SQL queries. Installation go get -u github.com/google/sqlcommenter/go/database/sql Usage Please use the sqlcommenter’s go-sql database driver to open a connection and use that connection to execute statements. Due to inherent nature of Go, the safer way to pass information from framework to database driver is via context. »