tracer

package
v4.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudTraceConfig added in v4.2.0

type CloudTraceConfig struct {
	Project       string            `json:"project" yaml:"project"`
	SamplingRatio float64           `json:"sampling_ratio" yaml:"sampling_ratio"`
	Tags          map[string]string `json:"tags" yaml:"tags"`
	FlushInterval string            `json:"flush_interval" yaml:"flush_interval"`
}

CloudTraceConfig is config for the Google Cloud Trace tracer.

func NewCloudTraceConfig added in v4.2.0

func NewCloudTraceConfig() CloudTraceConfig

NewCloudTraceConfig creates an CloudTraceConfig struct with default values.

type Config

type Config struct {
	Type       string           `json:"type" yaml:"type"`
	Jaeger     JaegerConfig     `json:"jaeger" yaml:"jaeger"`
	CloudTrace CloudTraceConfig `json:"gcp_cloudtrace" yaml:"gcp_cloudtrace"`
	None       struct{}         `json:"none" yaml:"none"`
	Plugin     any              `json:"plugin,omitempty" yaml:"plugin,omitempty"`
}

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.

Jump to

Keyboard shortcuts

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