tracing

package
v0.0.0-...-d814896 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoTracingMiddleware

func EchoTracingMiddleware(ot opentracing.Tracer, spanName string) echo.MiddlewareFunc

EchoTracingMiddleware returns a middleware for echo

func Init

func Init(config OpenTracingConfig) opentracing.Tracer

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, tracer opentracing.Tracer, name string, opts ...opentracing.StartSpanOption) (context.Context, opentracing.Span, error)

StartSpanFromContext returns a new span with the given operation name and options. If a span is found in the context, it will be used as the parent of the resulting span.

Types

type OpenTracingConfig

type OpenTracingConfig struct {
	JaegerURL   string
	ServiceName string
}

Jump to

Keyboard shortcuts

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