Documentation ¶
Index ¶
- func StartSpanFromContext(ctx context.Context, tracer Tracer, operation, method string, ...) (context.Context, otr.Span)
- type Interceptor
- func (i *Interceptor) ConnBeginTx(ctx context.Context, conn driver.ConnBeginTx, txOpts driver.TxOptions) (driver.Tx, error)
- func (i *Interceptor) ConnExecContext(ctx context.Context, conn driver.ExecerContext, query string, ...) (driver.Result, error)
- func (i *Interceptor) ConnPing(ctx context.Context, conn driver.Pinger) error
- func (i *Interceptor) ConnPrepareContext(ctx context.Context, conn driver.ConnPrepareContext, query string) (driver.Stmt, error)
- func (i *Interceptor) ConnQueryContext(ctx context.Context, conn driver.QueryerContext, query string, ...) (driver.Rows, error)
- func (i *Interceptor) ConnectorConnect(ctx context.Context, connect driver.Connector) (driver.Conn, error)
- func (i *Interceptor) ResultLastInsertId(res driver.Result) (int64, error)
- func (i *Interceptor) ResultRowsAffected(res driver.Result) (int64, error)
- func (i *Interceptor) RowsClose(ctx context.Context, rows driver.Rows) error
- func (i *Interceptor) RowsNext(ctx context.Context, rows driver.Rows, dest []driver.Value) error
- func (i *Interceptor) StmtClose(ctx context.Context, stmt driver.Stmt) error
- func (i *Interceptor) StmtExecContext(ctx context.Context, stmt driver.StmtExecContext, query string, ...) (driver.Result, error)
- func (i *Interceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, ...) (driver.Rows, error)
- func (i *Interceptor) TxCommit(ctx context.Context, tx driver.Tx) error
- func (i *Interceptor) TxRollback(ctx context.Context, tx driver.Tx) error
- type Tracer
- type TracerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interceptor ¶ added in v1.66.0
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor for opentracing.
func NewInterceptor ¶ added in v1.66.0
func NewInterceptor(tracer Tracer, interceptor sqlmw.Interceptor) *Interceptor
NewInterceptor for opentracing.
func (*Interceptor) ConnBeginTx ¶ added in v1.66.0
func (i *Interceptor) ConnBeginTx(ctx context.Context, conn driver.ConnBeginTx, txOpts driver.TxOptions) (driver.Tx, error)
func (*Interceptor) ConnExecContext ¶ added in v1.66.0
func (i *Interceptor) ConnExecContext(ctx context.Context, conn driver.ExecerContext, query string, args []driver.NamedValue) (driver.Result, error)
nolint:dupl
func (*Interceptor) ConnPrepareContext ¶ added in v1.66.0
func (i *Interceptor) ConnPrepareContext(ctx context.Context, conn driver.ConnPrepareContext, query string) (driver.Stmt, error)
func (*Interceptor) ConnQueryContext ¶ added in v1.66.0
func (i *Interceptor) ConnQueryContext(ctx context.Context, conn driver.QueryerContext, query string, args []driver.NamedValue) (driver.Rows, error)
nolint:dupl
func (*Interceptor) ConnectorConnect ¶ added in v1.66.0
func (*Interceptor) ResultLastInsertId ¶ added in v1.66.0
func (i *Interceptor) ResultLastInsertId(res driver.Result) (int64, error)
nolint:revive,stylecheck
func (*Interceptor) ResultRowsAffected ¶ added in v1.66.0
func (i *Interceptor) ResultRowsAffected(res driver.Result) (int64, error)
func (*Interceptor) StmtExecContext ¶ added in v1.66.0
func (i *Interceptor) StmtExecContext(ctx context.Context, stmt driver.StmtExecContext, query string, args []driver.NamedValue) (driver.Result, error)
nolint:dupl
func (*Interceptor) StmtQueryContext ¶ added in v1.66.0
func (i *Interceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, args []driver.NamedValue) (driver.Rows, error)
nolint:dupl
func (*Interceptor) TxRollback ¶ added in v1.66.0
type Tracer ¶
Tracer for opentracing.
func NewTracer ¶ added in v1.64.0
func NewTracer(params TracerParams) (Tracer, error)
NewTracer for opentracing.
type TracerParams ¶ added in v1.65.0
type TracerParams struct { fx.In Lifecycle fx.Lifecycle Config *opentracing.Config Version version.Version }
TracerParams for opentracing.
Click to show internal directories.
Click to hide internal directories.