tracer

package
v0.0.0-...-8b501b0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pool = new(pool)

Pool keeps track of instantiated tracers and provides a helper method for closing all of them at once.

Functions

func GetTracer

func GetTracer(serviceName string) (opentracing.Tracer, error)

GetTracer obtains and returns a new Jaeger tracer. To ensure that none of the traced spans are lost, callers must call Close on the exported Pool object before their application exits.

Note: this method will force Jaeger to capture every emitted span to make testing easier.

func MustGetTracer

func MustGetTracer(serviceName string) opentracing.Tracer

MustGetTracer obtains and returns a new Jaeger tracer or panics if any error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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