tracer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitJaeger

func InitJaeger(service string) (opentracing.Tracer, io.Closer)

InitJaeger

func Start

func Start(spanName string, ctx context.Context) (newCtx context.Context, finish func(...SpanOption))

Types

type SpanOption

type SpanOption func(span opentracing.Span)

func SpanWithError

func SpanWithError(err error) SpanOption

func SpanWithLog

func SpanWithLog(arg ...interface{}) SpanOption

example: SpanWithLog(

"event", "soft error",
"type", "cache timeout",
"waited.millis", 1500)

Jump to

Keyboard shortcuts

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