tracer

package
v0.0.0-...-e050086 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

type Sink interface {
	// GetProvider returns the sink's current tracer provider for otel
	GetProvider() trace.TracerProvider
	// GetLoggableTraceContext returns current span context in a log-friendly way.
	GetLoggableTraceContext(trace.Span) []interface{}
	// GetSinkName returns the current sink name
	GetSinkName() string
	// Stop stops the current tracer sink / provider (to flush, prevent memleaks and such)
	Stop() error
}

Sink describes a tracer sink

func GetSink

func GetSink(log *zap.SugaredLogger, driver types.SinkDriver) (Sink, error)

GetSink returns a new initiated tracer sink from the given SinkDriver provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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