tracing

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

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.

func IsExporterSupported added in v1.12.0

func IsExporterSupported(exporter SpanExporterType) bool

IsExporterSupported returns true if the given exporter is supported.

Types

type SpanExporterType

type SpanExporterType = string

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

const (
	// None is the noop span exporter.
	None SpanExporterType = ""
	// Default is the default span exporter to be used with any Open Telemetry-compatible agent.
	Default SpanExporterType = "DEFAULT"
	// Jaeger is the Jaeger span exporter.
	//Deprecated: use Default instead.
	Jaeger SpanExporterType = "JAEGER"
	// Stdout is the stdout span exporter.
	Stdout SpanExporterType = "STDOUT"
)

Jump to

Keyboard shortcuts

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