Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + const DefaultExporterDialTimeout + const DefaultFileLimit + const HostIDKey + const HostnameKey + const ProcessIDKey + const VersionKey + var ErrShutdown = errors.New("the client is shutdown") + func NewClient(cfg Config) (otlptrace.Client, error) + func NewExporter(ctx context.Context, cfg Config) (sdktrace.SpanExporter, error) + func NewNoopClient() otlptrace.Client + func NewStartedClient(ctx context.Context, cfg Config) (otlptrace.Client, error) + func NoopTracer(instrumentationName string) oteltrace.Tracer + type Collector struct + func NewCollector(cfg CollectorConfig) (*Collector, error) + func (c *Collector) ClientTLSConfig() *tls.Config + func (c *Collector) Export(ctx context.Context, req *coltracepb.ExportTraceServiceRequest) (*coltracepb.ExportTraceServiceResponse, error) + func (c *Collector) GRPCAddr() string + func (c *Collector) HTTPAddr() string + func (c *Collector) HTTPSAddr() string + func (c *Collector) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (c *Collector) Shutdown(ctx context.Context) error + func (c *Collector) Spans() []*otlp.ScopeSpans + func (c *Collector) Start() error + type CollectorConfig struct + TLSConfig *tls.Config + type Config struct + Attributes []attribute.KeyValue + Client *tracing.Client + DialTimeout time.Duration + ExporterURL string + Logger logrus.FieldLogger + SamplingRate float64 + Service string + TLSConfig *tls.Config + func (c *Config) CheckAndSetDefaults() error + func (c *Config) Endpoint() string + type Provider struct + func NewTraceProvider(ctx context.Context, cfg Config) (*Provider, error) + func NoopProvider() *Provider + func (p *Provider) Shutdown(ctx context.Context) error + func (p *Provider) Tracer(instrumentationName string, opts ...oteltrace.TracerOption) oteltrace.Tracer + type RotatingFileClient struct + func NewRotatingFileClient(dir string, limit uint64) (*RotatingFileClient, error) + func (f *RotatingFileClient) Start(ctx context.Context) error + func (f *RotatingFileClient) Stop(ctx context.Context) error + func (f *RotatingFileClient) UploadTraces(ctx context.Context, protoSpans []*otlp.ResourceSpans) error