tracer

package
v0.0.0-...-6d34543 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomTag

func CustomTag(key string, val interface{}) opentracing.Tag

func HeaderExtractor

func HeaderExtractor(hd map[string][]string) opentracing.StartSpanOption

func TagComponent

func TagComponent(val string) opentracing.Tag

func TagDbSchema

func TagDbSchema(schema string) opentracing.Tag

func TagFinishTime

func TagFinishTime() opentracing.FinishOptions

func TagLocalIPV4

func TagLocalIPV4() opentracing.Tag

func TagStartTime

func TagStartTime() opentracing.StartSpanOption

Types

type Config

type Config struct {
	ServiceName string
	RPCMetrics  bool
	Sampler     *jconfig.SamplerConfig
	Reporter    *jconfig.ReporterConfig
	Headers     *jaeger.HeadersConfig
	// contains filtered or unexported fields
}

func (*Config) Build

func (config *Config) Build() (opentracing.Tracer, io.Closer)

func (*Config) WithOption

func (config *Config) WithOption(opts ...jconfig.Option) *Config

func (*Config) WithTag

func (config *Config) WithTag(tags ...opentracing.Tag) *Config

type EsimTracer

type EsimTracer struct {
	opentracing.Tracer
	io.Closer
}

func InitTracer

func InitTracer() *EsimTracer

type MetadataReaderWriter

type MetadataReaderWriter struct {
	metadata.MD
}

func (MetadataReaderWriter) ForeachKey

func (w MetadataReaderWriter) ForeachKey(handler func(key, val string) error) error

func (MetadataReaderWriter) Set

func (w MetadataReaderWriter) Set(key, val string)

type NullStartSpanOption

type NullStartSpanOption struct{}

NullStartSpanOption ...

func (NullStartSpanOption) Apply

func (sso NullStartSpanOption) Apply(options *opentracing.StartSpanOptions)

Apply ...

Jump to

Keyboard shortcuts

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