otel

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Fraction     float64
	MetricPrefix string
	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(name string, sampler sdk_trace.Sampler, exporter sdk_trace.SpanExporter) *Tracer

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