Versions in this module Expand all Collapse all v1 v1.0.2 May 10, 2023 Changes in this version + const QueryTypeBegin + const QueryTypeClose + const QueryTypeCommit + const QueryTypeConnect + const QueryTypeExec + const QueryTypePing + const QueryTypePrepare + const QueryTypeQuery + const QueryTypeRollback + func Open(driverName, dataSourceName string, opts ...Option) (*sql.DB, error) + func OpenDB(c driver.Connector, opts ...Option) *sql.DB + func Register(driverName string, driver driver.Driver, opts ...RegisterOption) + func WithSpanTags(ctx context.Context, tags map[string]string) context.Context + type Option func(*config) + func WithAnalytics(on bool) Option + func WithAnalyticsRate(rate float64) Option + func WithChildSpansOnly() Option + func WithCustomTag(key string, value interface{}) Option + func WithDBMPropagation(mode tracer.DBMPropagationMode) Option + func WithDSN(name string) Option + func WithErrorCheck(fn func(err error) bool) Option + func WithIgnoreQueryTypes(qtypes ...QueryType) Option + func WithSQLCommentInjection(mode tracer.SQLCommentInjectionMode) Option + func WithServiceName(name string) Option + type QueryType string + type RegisterOption = Option + type TracedConn struct + func (tc *TracedConn) BeginTx(ctx context.Context, opts driver.TxOptions) (tx driver.Tx, err error) + func (tc *TracedConn) CheckNamedValue(value *driver.NamedValue) error + func (tc *TracedConn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (r driver.Result, err error) + func (tc *TracedConn) Ping(ctx context.Context) (err error) + func (tc *TracedConn) PrepareContext(ctx context.Context, query string) (stmt driver.Stmt, err error) + func (tc *TracedConn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (rows driver.Rows, err error) + func (tc *TracedConn) ResetSession(ctx context.Context) error + func (tc *TracedConn) WrappedConn() driver.Conn