tracer

package
v4.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type   string       `json:"type" yaml:"type"`
	Jaeger JaegerConfig `json:"jaeger" yaml:"jaeger"`
	None   struct{}     `json:"none" yaml:"none"`
}

Config is the all encompassing configuration struct for all tracer types.

func NewConfig

func NewConfig() Config

NewConfig returns a configuration struct fully populated with default values.

func (*Config) UnmarshalYAML

func (conf *Config) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML ensures that when parsing configs that are in a map or slice the default values are still applied.

type JaegerConfig

type JaegerConfig struct {
	AgentAddress  string            `json:"agent_address" yaml:"agent_address"`
	CollectorURL  string            `json:"collector_url" yaml:"collector_url"`
	SamplerType   string            `json:"sampler_type" yaml:"sampler_type"`
	SamplerParam  float64           `json:"sampler_param" yaml:"sampler_param"`
	Tags          map[string]string `json:"tags" yaml:"tags"`
	FlushInterval string            `json:"flush_interval" yaml:"flush_interval"`
}

JaegerConfig is config for the Jaeger metrics type.

func NewJaegerConfig

func NewJaegerConfig() JaegerConfig

NewJaegerConfig creates an JaegerConfig struct with default values.

type Noop

type Noop struct{}

Noop is a no-operation implementation of a tracer.

func (Noop) Close

func (n Noop) Close() error

Close does nothing.

type Type

type Type interface {
	// Close stops and cleans up the tracers resources.
	Close() error
}

Type is an interface implemented by all tracer types.

Jump to

Keyboard shortcuts

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