gotracer

package
v1.9.3-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomTracer

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

func NewCustomTracer

func NewCustomTracer(traceOptions ...Option) *CustomTracer

func (*CustomTracer) Shutdown

func (t *CustomTracer) Shutdown()

type Option

type Option func(t *CustomTracer)

func SetCollectorHost

func SetCollectorHost(collectorHost string) Option

func SetIsInKubernetes

func SetIsInKubernetes(isInKubernetes bool) Option

func SetLogger

func SetLogger(logger *gologger.CustomLogger) Option

func SetOtelExporter

func SetOtelExporter(exporter *otlptrace.Exporter) Option

func SetPropagator

func SetPropagator(propagator propagation.TextMapPropagator) Option

func SetSampler

func SetSampler(sampler trace.Sampler) Option

func SetServiceName

func SetServiceName(serviceName string) Option

func SetTracingContext

func SetTracingContext(ctx context.Context) Option

Jump to

Keyboard shortcuts

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