tracing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolKey key = iota

ProtocolKey is the key used to denote a protocol in a `context.Context`.

Variables

View Source
var (
	// ProtocolTag specified the span tag used for denoting a protocol.
	ProtocolTag = "protocol"
	// UndefinedProtocol is the default ProtocolTag value used if no
	// ProtocolKey is present in the context.
	UndefinedProtocol = "__UNDEFINED_PROTOCOL__"
)

Functions

func CloseAll

func CloseAll() error

CloseAll closes all the tracer instances.

func GetTracerForAddr

func GetTracerForAddr(addr string) (opentracing.Tracer, error)

GetTracerForAddr returns an `opentracing.Tracer` instance for the given address. Since the tracers are cached, it returns an existing one if it has been initialized before.

Types

This section is empty.

Jump to

Keyboard shortcuts

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