package
0.8.9
Repository: https://github.com/influx6/npkg.git
Documentation: pkg.go.dev

# Functions

CloseOpenTracingMWSpan returns a new middleware for closing the OpenTracing span which then writes trace to underline tracing service.
GetSpanFromContext returns a OpenTracing span if available from provided context.
InitZipkinTracer inits the jaeger client Service PageName in Jaeger Query - edit accordingly to the Kubernetes service name (ask us if you don't know).
NewMethodSpanFromContext returns a OpenTracing span if available from provided context.
NewSpanFromContext returns a new OpenTracing child span which was created as a child of a existing span from the underline context if it exists, else returning no Span.
OpenTracingSpanMW returns a middleware function able to based on tracing configuration key, enable and setup tracing using opentracing spans.
WithKV as new key-value pair into the spans baggage store.
WithTrace returns a new context.Context and a function which can be used to finish the opentracing.Span attached to giving context.
WithTag adds a new tag into a giving span.
WithTrace returns a new context.Context and a function which can be used to finish the opentracing.Span attached to giving context.

# Constants

SpanKey provides giving key-name used to store open-tracing span into the context.