jaeger

package
v0.0.0-...-c18a219 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgName = "auxo.apm.trace.jaeger"
)

Variables

View Source
var (
	ErrEmptyName = errors.New("jaeger: empty name")
)

Functions

func Auto

func Auto()

Auto initialize a global tracer on app start and auto-close it on app exit.

func Init

func Init(opts Options) (io.Closer, error)

Types

type Options

type Options struct {
	Name       string `json:"name" yaml:"name"`
	Enabled    bool   `json:"enabled"yaml:"enabled"`
	RPCMetrics bool   `json:"rpc_metrics" yaml:"rpc_metrics"`
	Sampler    struct {
		ServerURL string  `json:"server_url" yaml:"server_url"`
		Type      string  `json:"type" yaml:"type"`
		Param     float64 `json:"param" yaml:"param"`
	} `json:"sampler" yaml:"sampler"`
	Reporter struct {
		Address       string        `json:"address" yaml:"address"`
		FlushInterval time.Duration `json:"flush_interval" yaml:"flush_interval"`
		Log           bool          `json:"log" yaml:"log"`
		QueueSize     int           `json:"queue_size" yaml:"queue_size"`
	} `json:"reporter" yaml:"reporter"`
}

Jump to

Keyboard shortcuts

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