package
2.5.0
Repository: https://github.com/ethersphere/bee.git
Documentation: pkg.go.dev

# Functions

FromContext return tracing span context from go context.
NewLoggerWithTraceID creates a new log Entry with "traceID" field added if it exists in tracing span context stored from go context.
NewTracer creates a new Tracer and returns a closer which needs to be closed when the Tracer is no longer used to flush remaining traces.
WithContext adds tracing span context to go context.

# Constants

LogField is the key in log message field that holds tracing id value.
TraceBaggageHeaderPrefix is the prefix for http headers used to propagate baggage.
TraceContextHeaderName is the http header name used to propagate tracing context.

# Variables

ErrContextNotFound is returned when tracing context is not present in p2p Headers or context.

# Structs

Options are optional parameters for Tracer constructor.
Tracer connect to a tracing server and handles tracing spans and contexts by using opentracing Tracer.