Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapDriver ¶
func WrapDriver(drv driver.Driver, opts *WrapOptions) driver.DriverContext
WrapDriver will wrap a database driver with tracing information.
Types ¶
type WrapOptions ¶
type WrapOptions struct { Query bool // include the SQL query Args bool // include the arguments passed }
WrapOptions allow specifying additional information to include in the trace.
Click to show internal directories.
Click to hide internal directories.