tracing

package
v0.0.0-...-77bb9dd Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBlankTraceConfiguration = errors.New("no trace report agent, config server, or collector endpoint specified")
)

ErrInvalidConfiguration is an error to notify client to provide valid trace report agent or config server

Functions

func ExtractSampledTraceID

func ExtractSampledTraceID(ctx context.Context) (string, bool)

ExtractSampledTraceID works like ExtractTraceID but the returned bool is only true if the returned trace id is sampled.

func ExtractTraceID

func ExtractTraceID(ctx context.Context) (string, bool)

ExtractTraceID extracts the trace id, if any from the context.

func ExtractTraceSpanID

func ExtractTraceSpanID(ctx context.Context) (string, string, bool)

ExtractTraceSpanID extracts the trace id, span id if any from the context.

func NewFromEnv

func NewFromEnv(serviceName string, options ...jaegercfg.Option) (io.Closer, error)

NewFromEnv is a convenience function to allow tracing configuration via environment variables

Tracing will be enabled if one (or more) of the following environment variables is used to configure trace reporting: - JAEGER_AGENT_HOST - JAEGER_SAMPLER_MANAGER_HOST_PORT

Types

This section is empty.

Jump to

Keyboard shortcuts

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