Versions in this module Expand all Collapse all v1 v1.7.24 Mar 25, 2020 Changes in this version + const EntryPointMaxLengthNumber + const ForwardMaxLengthNumber + const TraceNameHashLength + func GetSpan(r *http.Request) opentracing.Span + func InjectRequestHeaders(r *http.Request) + func LogEventf(r *http.Request, format string, args ...interface{}) + func LogRequest(span opentracing.Span, r *http.Request) + func LogResponseCode(span opentracing.Span, code int) + func SetError(r *http.Request) + func SetErrorAndDebugLog(r *http.Request, format string, args ...interface{}) + func SetErrorAndWarnLog(r *http.Request, format string, args ...interface{}) + func StartSpan(r *http.Request, operationName string, spanKinClient bool, ...) (opentracing.Span, *http.Request, func()) + type Backend interface + Setup func(serviceName string) (opentracing.Tracer, io.Closer, error) + type HTTPHandlerWrapper struct + func (t *HTTPHandlerWrapper) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type HTTPHeadersCarrier http.Header + func (c HTTPHeadersCarrier) ForeachKey(handler func(key, val string) error) error + func (c HTTPHeadersCarrier) Set(key, val string) + type NegroniHandlerWrapper struct + func (t *NegroniHandlerWrapper) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) + type Tracing struct + Backend string + DataDog *datadog.Config + Jaeger *jaeger.Config + ServiceName string + SpanNameLimit int + Zipkin *zipkin.Config + func (t *Tracing) Close() + func (t *Tracing) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error) + func (t *Tracing) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error + func (t *Tracing) IsEnabled() bool + func (t *Tracing) NewEntryPoint(name string) negroni.Handler + func (t *Tracing) NewForwarderMiddleware(frontend, backend string) negroni.Handler + func (t *Tracing) NewHTTPHandlerWrapper(name string, handler http.Handler, clientSpanKind bool) http.Handler + func (t *Tracing) NewNegroniHandlerWrapper(name string, handler negroni.Handler, clientSpanKind bool) negroni.Handler + func (t *Tracing) Setup() + func (t *Tracing) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span