tracing

package
v1.14.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 23 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"`
	ExporterType   string              `yaml:"exporter_type" json:"exporter_type"`
	SampleRatio    float64             `yaml:"sample_ratio" json:"sample_ratio"`
	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