opentracing

package
Version: v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventReceiver

type EventReceiver struct{}

EventReceiver provides an embeddable implementation of dbr.TracingEventReceiver powered by opentracing-go.

func (EventReceiver) SpanError

func (EventReceiver) SpanError(ctx context.Context, err error)

SpanError adds an error to the span associated with ctx.

func (EventReceiver) SpanFinish

func (EventReceiver) SpanFinish(ctx context.Context)

SpanFinish finishes the span associated with ctx.

func (EventReceiver) SpanStart

func (EventReceiver) SpanStart(ctx context.Context, eventName, query string) context.Context

SpanStart starts a new query span from ctx, then returns a new context with the new span.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL