tracing

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JaegerType = "jaeger"
	OtelType   = "otel"
)

Variables

This section is empty.

Functions

func SetupTracing

func SetupTracing(ctx context.Context, name string, c Config) (func(context.Context) error, error)

Types

type Config

type Config struct {
	Type string `yaml:"type" json:"type"`
	Otel Otel   `yaml:"otel" json:"otel"`
}

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(f *flag.FlagSet)

RegisterFlags registers flag.

func (*Config) Validate

func (c *Config) Validate() error

type Otel

type Otel struct {
	OltpEndpoint   string              `yaml:"oltp_endpoint" json:"oltp_endpoint" doc:"hidden"`
	OtlpEndpoint   string              `yaml:"otlp_endpoint" json:"otlp_endpoint"`
	ExporterType   string              `yaml:"exporter_type" json:"exporter_type"`
	SampleRatio    float64             `yaml:"sample_ratio" json:"sample_ratio"`
	RoundRobin     bool                `yaml:"round_robin" json:"round_robin"`
	TLSEnabled     bool                `yaml:"tls_enabled"`
	TLS            tls.ClientConfig    `yaml:"tls"`
	ExtraDetectors []resource.Detector `yaml:"-"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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