# Packages
Package tracing_middleware
tracing is a "parent" package for gRPC logging middlewares.
# Functions
ContextWithTracer returns a new `context.Context` that holds a reference to given opentracing.Tracer.
CopyTraceContext copies the necessary trace context from given source context to target context.
Utility function for use with tests in pkg/tracing.
DoInSpan executes function doFn inside new span with `operationName` name and hooking as child to a span found within given context if any.
DoInSpanWithErr executes function doFn inside new span with `operationName` name and hooking as child to a span found within given context if any.
DoWithSpan executes function doFn inside new span with `operationName` name and hooking as child to a span found within given context if any.
HTTPMiddleware returns an HTTP handler that injects the given tracer and starts a new server span.
HTTPTripperware returns HTTP tripper that assumes given span in context as client child span and injects it into the wire.
StartSpan starts and returns span with `operationName` and hooking as child to a span found within given context if any.
StreamClientInterceptor returns a new streaming client interceptor for OpenTracing.
StreamServerInterceptor returns a new streaming server interceptor for OpenTracing and injects given tracer.
UnaryClientInterceptor returns a new unary client interceptor for OpenTracing.
UnaryServerInterceptor returns a new unary server interceptor for OpenTracing and injects given tracer.
# Constants
ForceTracingBaggageKey is a request header name that forces tracing sampling.
# Interfaces
Tracer interface to provide GetTraceIDFromSpanContext method.