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
}