tracing

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	JaegerAgentEndpointEnvKey     = "OTEL_EXPORTER_JAEGER_AGENT_HOST"
	JaegerCollectorEndpointEnvKey = "OTEL_EXPORTER_JAEGER_ENDPOINT"
)

Variables

This section is empty.

Functions

func Initialize

func Initialize(exporter SpanExporterType, serviceName string) (func(), trace.Tracer, error)

Initialize creates and registers globally a new tracer provider with specified span exporter. Return values are: - func() - Should be called to gracefully shut down the tracer provider before the process terminates. - trace.Tracer - Used to start new spans. - error - An error if the tracer provider could not be initialized or nil if successful.

Types

type SpanExporterType

type SpanExporterType = string

SpanExporterType specifies the type of span exporter used by tracer provider.

const (
	None   SpanExporterType = ""
	Jaeger SpanExporterType = "JAEGER"
	Stdout SpanExporterType = "STDOUT"
)

Jump to

Keyboard shortcuts

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