tracer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() opentracing.Tracer

func NewJaegerTracer

func NewJaegerTracer(serviceName string, c *Config, logg *logger.DemoLog) (tra opentracing.Tracer, closer io.Closer, err error)

func Span

func Span(serviceName string) opentracing.Span

Types

type Config

type Config struct {
	BufferFlushInterval int    `yaml:"buffer_flush_interval"`
	LocalAgentHostPort  string `yaml:"local_agent_host_port" env:"TraceAgent" env-description:"host and port of jaeger agent"`
	LogSpan             bool   `yaml:"log_span" env:"TraceLog" env-description:"enable record span or not"`
}

Jump to

Keyboard shortcuts

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