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"` }
Click to show internal directories.
Click to hide internal directories.