telemetry

package
v9.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KVBool         = attribute.Bool
	KVBoolSlice    = attribute.BoolSlice
	KVInt          = attribute.Int
	KVIntSlice     = attribute.IntSlice
	KVInt64        = attribute.Int64
	KVInt64Slice   = attribute.Int64Slice
	KVFloat64      = attribute.Float64
	KVFloat64Slice = attribute.Float64Slice
	KVString       = attribute.String
	KVStringSlice  = attribute.StringSlice
	KVStringer     = attribute.Stringer
)

Functions

This section is empty.

Types

type KeyValue

type KeyValue = attribute.KeyValue

type Resource

type Resource = resource.Resource

type Span

type Span = trace.Span

type SpanExporter

type SpanExporter = sdkTrace.SpanExporter

type StartSpanOption

type StartSpanOption = trace.SpanStartOption

type Telemeter

type Telemeter struct {
	// contains filtered or unexported fields
}

func NewTelemeter

func NewTelemeter(serviceName, version, instanceID string, spanExporter SpanExporter, spanSample float64) *Telemeter

func (*Telemeter) MakeDefault

func (t *Telemeter) MakeDefault()

func (*Telemeter) Shutdown

func (t *Telemeter) Shutdown(ctx context.Context) error

func (*Telemeter) StartSpan

func (t *Telemeter) StartSpan(ctx context.Context, pkg, op string, opts ...StartSpanOption) (context.Context, Span)

func (*Telemeter) Tracer

func (t *Telemeter) Tracer(instrumentationName string, opts ...TracerOption) Tracer

type Tracer

type Tracer = trace.Tracer

type TracerOption

type TracerOption = trace.TracerOption

Jump to

Keyboard shortcuts

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