metrictank: github.com/grafana/metrictank/tracing Index | Files

package tracing

import "github.com/grafana/metrictank/tracing"

package tracing contains some helpers to make working with opentracing a tad simpler

Index

Package Files

tracing.go

func Error Uses

func Error(span opentracing.Span, err error)

Error logs error

func Errorf Uses

func Errorf(span opentracing.Span, format string, a ...interface{})

Errorf logs error

func Failure Uses

func Failure(span opentracing.Span)

Failure marks the current request as a failure

func NewSpan Uses

func NewSpan(ctx context.Context, tracer opentracing.Tracer, name string) (context.Context, opentracing.Span)

NewSpan pulls the span out of the context, creates a new child span, and updates the context callers must call span.Finish() when done important: the context must contain a span, otherwise you'll see a nilpointer panic here.

Package tracing imports 5 packages (graph) and is imported by 9 packages. Updated 2017-10-12. Refresh now. Tools for package owners.