Versions in this module Expand all Collapse all v0 v0.3.0 Dec 15, 2019 v0.2.0 Dec 7, 2019 Changes in this version + func InitJaeger(ctx context.Context, service string) (opentracing.Tracer, io.Closer, error) + func InitLightstep(service string, accessToken string) lightstep.Tracer + func Register(tracer *mocktracer.MockTracer, ss traces.SpanStore, r *mux.Router) error + type HTTPMockTracer struct + func (h *HTTPMockTracer) FinishedSpans(w http.ResponseWriter, r *http.Request) + func (h *HTTPMockTracer) Reset(w http.ResponseWriter, r *http.Request) + type Initializer func(ctx context.Context, name string) (opentracing.Tracer, io.Closer, error) + func InitializerFromCLI(c *cli.Context, tracerName string) Initializer + type LightstepCloser struct + func NewLightstepCloser(ctx context.Context, tracer lightstep.Tracer) LightstepCloser + func (l LightstepCloser) Close() error + type LoggingTracer struct + func (n LoggingTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error) + func (n LoggingTracer) Inject(sp opentracing.SpanContext, format interface{}, carrier interface{}) error + func (n LoggingTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span + type NoopCloser struct + func (nc NoopCloser) Close() error + type Source struct + func NewRequestScopedUsingSources() Source + func (s Source) RequestScoped(r *http.Request, es eventsources.EventSource) (opentracing.Tracer, io.Closer, error) + type TestSpan struct + Span *mocktracer.MockSpan + Tags map[string]interface{}