otlp

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TracingClientGRPC                  string = "grpc"
	TracingClientHTTP                  string = "http"
	AlwaysSample                       string = "alwayssample"
	NeverSample                        string = "neversample"
	TraceIDRatioBasedSample            string = "traceidratiobased"
	ParentBasedAlwaysSample            string = "parentbasedalwayssample"
	ParentBasedNeverSample             string = "parentbasedneversample"
	ParentBasedTraceIDRatioBasedSample string = "parentbasedtraceidratiobased"
)

Variables

This section is empty.

Functions

func NewTracerProvider

func NewTracerProvider(ctx context.Context, logger log.Logger, conf []byte) (*tracesdk.TracerProvider, error)

NewOTELTracer returns an OTLP exporter based tracer.

Types

type Config

type Config struct {
	ClientType         string            `yaml:"client_type"`
	ServiceName        string            `yaml:"service_name"`
	ResourceAttributes map[string]string `yaml:"resource_attributes"`
	ReconnectionPeriod time.Duration     `yaml:"reconnection_period"`
	Compression        string            `yaml:"compression"`
	Insecure           bool              `yaml:"insecure"`
	Endpoint           string            `yaml:"endpoint"`
	URLPath            string            `yaml:"url_path"`
	Timeout            time.Duration     `yaml:"timeout"`
	RetryConfig        retryConfig       `yaml:"retry_config"`
	Headers            map[string]string `yaml:"headers"`
	TLSConfig          exthttp.TLSConfig `yaml:"tls_config"`
	SamplerType        string            `yaml:"sampler_type"`
	SamplerParam       string            `yaml:"sampler_param"`
}

Jump to

Keyboard shortcuts

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