opentelemetry

package
v3.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultOpenTracer is what anything using an opentracing.Tracer will access:
	DefaultOpenTracer opentracing.Tracer = new(opentracing.NoopTracer)
)

Functions

This section is empty.

Types

type MicroMetadataReaderWriter

type MicroMetadataReaderWriter struct {
	mmd.Metadata
}

MicroMetadataReaderWriter satisfies both the opentracing.TextMapReader and opentracing.TextMapWriter interfaces.

func (MicroMetadataReaderWriter) ForeachKey

func (w MicroMetadataReaderWriter) ForeachKey(handler func(key, val string) error) error

func (MicroMetadataReaderWriter) Set

func (w MicroMetadataReaderWriter) Set(key, val string)

type Option

type Option func(o *Options)

func WithSamplingRate

func WithSamplingRate(samplingRate float64) Option

WithSamplingRate configures the sampling rate:

func WithServiceName

func WithServiceName(serviceName string) Option

WithServiceName configures the name of this service:

func WithTraceReporterAddress

func WithTraceReporterAddress(traceReporterAddress string) Option

WithTraceReporterAddress configures the address of the trace reporter:

type Options

type Options struct {
	SamplingRate         float64 // Percentage of requests to sample (0 = rely on propagated decision)
	ServiceName          string  // The name of this service
	TraceReporterAddress string  // The address of a reporting server
}

Options for opentelemetry:

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns default options:

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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