opentracing

package
v1.66.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2022 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, tracer Tracer, operation, method string, opts ...otr.StartSpanOption) (context.Context, otr.Span)

StartSpanFromContext for opentracing.

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) ConnPing added in v1.66.0

func (i *Interceptor) ConnPing(ctx context.Context, conn driver.Pinger) error

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 (i *Interceptor) ConnectorConnect(ctx context.Context, connect driver.Connector) (driver.Conn, error)

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) RowsClose added in v1.66.0

func (i *Interceptor) RowsClose(ctx context.Context, rows driver.Rows) error

func (*Interceptor) RowsNext added in v1.66.0

func (i *Interceptor) RowsNext(ctx context.Context, rows driver.Rows, dest []driver.Value) error

func (*Interceptor) StmtClose added in v1.66.0

func (i *Interceptor) StmtClose(ctx context.Context, stmt driver.Stmt) 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) TxCommit added in v1.66.0

func (i *Interceptor) TxCommit(ctx context.Context, tx driver.Tx) error

func (*Interceptor) TxRollback added in v1.66.0

func (i *Interceptor) TxRollback(ctx context.Context, tx driver.Tx) error

type Tracer

type Tracer otr.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL