Package sql provides a wrapper for database/sql/driver.Drivers for tracing database operations as spans of a transaction traced by opentracing
To instrument a driver, you can simply swap your application's calls to sql.Register and sql.Open to apmsql.Register and apmsql.Open respectively. The apmsql.Register function accepts zero or more options to influence how tracing is performed.