telemetry

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var B3_PROPAGATOR = b3.New()

B3 propagator that can be used instead of the default W3C trace context/baggage

Functions

func SetupTracing

func SetupTracing(ctx context.Context, config *TracingConfig) (*sdktrace.TracerProvider, func())

Types

type TracingConfig

type TracingConfig struct {
	ServiceName           string
	ServiceVersion        string
	DeploymentEnvironment string

	OtlpExporterEnabled       bool
	OtlpCollectorHttpEndpoint *string
	OtlpCollectorTimeoutSecs  *int

	StdoutExporterEnabled *bool

	Propagator propagation.TextMapPropagator
	Sampler    sdktrace.Sampler
}

Jump to

Keyboard shortcuts

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