pilosa: github.com/pilosa/pilosa/tracing/opentracing Index | Files

package opentracing

import "github.com/pilosa/pilosa/tracing/opentracing"

Index

Package Files

opentracing.go

type Tracer Uses

type Tracer struct {
    // contains filtered or unexported fields
}

Tracer represents a wrapper for OpenTracing that implements tracing.Tracer.

func NewTracer Uses

func NewTracer(tracer opentracing.Tracer) *Tracer

NewTracer returns a new instance of Tracer.

func (*Tracer) ExtractHTTPHeaders Uses

func (t *Tracer) ExtractHTTPHeaders(r *http.Request) (tracing.Span, context.Context)

ExtractHTTPHeaders reads the HTTP headers to derive incoming context.

func (*Tracer) InjectHTTPHeaders Uses

func (t *Tracer) InjectHTTPHeaders(r *http.Request)

InjectHTTPHeaders adds the required HTTP headers to pass context between nodes.

func (*Tracer) StartSpanFromContext Uses

func (t *Tracer) StartSpanFromContext(ctx context.Context, operationName string) (tracing.Span, context.Context)

StartSpanFromContext returns a new child span and context from a given context.

Package opentracing imports 6 packages (graph) and is imported by 3 packages. Updated 2019-10-11. Refresh now. Tools for package owners.