Documentation ¶
Index ¶
- 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
- type Initializer
- type LightstepCloser
- type LoggingTracer
- 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
- type Source
- type TestSpan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitJaeger ¶
initJaeger returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.
func InitLightstep ¶
func Register ¶
func Register(tracer *mocktracer.MockTracer, ss traces.SpanStore, r *mux.Router) error
Types ¶
type HTTPMockTracer ¶
type HTTPMockTracer struct {
// contains filtered or unexported fields
}
HTTPMockTracer exposes mock tracer methods over HTTP
func (*HTTPMockTracer) FinishedSpans ¶
func (h *HTTPMockTracer) FinishedSpans(w http.ResponseWriter, r *http.Request)
func (*HTTPMockTracer) Reset ¶
func (h *HTTPMockTracer) Reset(w http.ResponseWriter, r *http.Request)
type Initializer ¶
func InitializerFromCLI ¶
func InitializerFromCLI(c *cli.Context, tracerName string) Initializer
type LightstepCloser ¶
type LightstepCloser struct {
// contains filtered or unexported fields
}
func NewLightstepCloser ¶
func NewLightstepCloser(ctx context.Context, tracer lightstep.Tracer) LightstepCloser
func (LightstepCloser) Close ¶
func (l LightstepCloser) Close() error
type LoggingTracer ¶
type LoggingTracer struct{}
func (LoggingTracer) Extract ¶
func (n LoggingTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
Extract belongs to the Tracer interface.
func (LoggingTracer) Inject ¶
func (n LoggingTracer) Inject(sp opentracing.SpanContext, format interface{}, carrier interface{}) error
Inject belongs to the Tracer interface.
func (LoggingTracer) StartSpan ¶
func (n LoggingTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
StartSpan belongs to the Tracer interface.
type NoopCloser ¶
type NoopCloser struct{}
func (NoopCloser) Close ¶
func (nc NoopCloser) Close() error
type Source ¶
type Source struct{}
Source tracer delegates to the EventSource provided tracer
func NewRequestScopedUsingSources ¶
func NewRequestScopedUsingSources() Source
func (Source) RequestScoped ¶
func (s Source) RequestScoped(r *http.Request, es eventsources.EventSource) (opentracing.Tracer, io.Closer, error)
type TestSpan ¶
type TestSpan struct { Span *mocktracer.MockSpan Tags map[string]interface{} }
Click to show internal directories.
Click to hide internal directories.