opentracing

package
v1.7.35 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Unlicense Imports: 9 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 Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator for opentracing.

func NewMigrator

func NewMigrator(migrator migrator.Migrator, tracer Tracer) *Migrator

NewMigrator for opentracing.

func (*Migrator) Migrate

func (m *Migrator) Migrate(ctx context.Context, source, db string, version uint64) ([]string, error)

Migrate a database to a version and returning the database logs.

func (*Migrator) Ping added in v1.4.0

func (m *Migrator) Ping(ctx context.Context, source, db string) error

Ping the migrator.

type Tracer

type Tracer otr.Tracer

Tracer for opentracing.

func NewTracer

func NewTracer(lc fx.Lifecycle, cfg *opentracing.Config, version version.Version) (Tracer, error)

NewTracer for opentracing.

Jump to

Keyboard shortcuts

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