tracing

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0 Imports: 5 Imported by: 18

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(span opentracing.Span, err error)

Error logs error

func Errorf

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

Errorf logs error

func Failure

func Failure(span opentracing.Span)

Failure marks the current request as a failure

func NewSpan

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL