otel

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FractionFromConfig

func FractionFromConfig(i interface{}) (float64, error)

func NewTracerFromConfig

func NewTracerFromConfig(rawConfig map[string]interface{}) (err error)

Types

type Config

type Config struct {
	Fraction float64
	Endpoint string
}

func (*Config) NewTracer

func (c *Config) NewTracer() error

type Tracer

type Tracer struct {
	Exporter api_trace.Tracer
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(sampler sdk_trace.Sampler, exporter sdk_trace.SpanExporter) (*Tracer, error)

func (*Tracer) NewClientInterceptorSpan

func (t *Tracer) NewClientInterceptorSpan(ctx context.Context, name string) (context.Context, *tracing.Span)

func (*Tracer) NewClientSpan

func (t *Tracer) NewClientSpan(ctx context.Context, caller string) (context.Context, *tracing.Span)

func (*Tracer) NewServerInterceptorSpan

func (t *Tracer) NewServerInterceptorSpan(ctx context.Context, name string) (context.Context, *tracing.Span)

func (*Tracer) NewServerSpan

func (t *Tracer) NewServerSpan(ctx context.Context, caller string) (context.Context, *tracing.Span)

func (*Tracer) NewSpan

func (t *Tracer) NewSpan(ctx context.Context, caller string) (context.Context, *tracing.Span)

func (*Tracer) NewSpanHTTP

func (t *Tracer) NewSpanHTTP(r *http.Request, caller string) (*http.Request, *tracing.Span)

func (*Tracer) Sampler

func (t *Tracer) Sampler() sdk_trace.Sampler

Jump to

Keyboard shortcuts

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