impl

package
v1.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfiguration = errors.New("jaeger tracer: configuration error")

ErrConfiguration is the base exception for tracing configuration errors.

Functions

func IsSampled added in v1.18.0

func IsSampled(span opentracing.Span) bool

IsSampled returns the sampling status (true/false) of a span. Most implementations support checking this status. Unfortunately, we hide the tracing implementations behind unified opentracing interfaces. The single input is an opentracing.Span interface. As a result, we need to type-cast it back to all supported implementations. This status is particularly useful when a span is not free to collect, or has to turn on some special configs. One example is Git Trace2. It's a built-in observability tool that provides a deeper look into Git processes. Enabling this feature is not expensive, but not cheap either. We don't want to enable it for all Git processes. So, it makes sense to collect such data when the parent span is sampled.

func New

func New(driverName string, config map[string]string) (opentracing.Tracer, io.Closer, error)

New will instantiate a new instance of the tracer, given the driver and configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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