opentracing

package
v1.82.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer added in v1.64.0

func NewTracer(params TracerParams) (otr.Tracer, error)

NewTracer for opentracing.

func SetError added in v1.66.6

func SetError(span otr.Span, err error)

SetError on span.

func StartSpanFromContext

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

StartSpanFromContext for opentracing.

Types

type Config

type Config struct {
	Kind string `yaml:"kind" json:"kind" toml:"kind"`
	Host string `yaml:"host" json:"host" toml:"host"`
}

Config for opentracing.

func (*Config) IsDataDog added in v1.64.0

func (c *Config) IsDataDog() bool

IsDataDog config.

func (*Config) IsJaeger added in v1.64.0

func (c *Config) IsJaeger() bool

IsJaeger config.

type TracerParams added in v1.64.0

type TracerParams struct {
	Lifecycle fx.Lifecycle
	Name      string
	Version   version.Version
	Config    *Config
}

TracerParams for opentracing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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