tracing

package
v0.0.0-...-569970b Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChildSpan

func ChildSpan(opname string, c buffalo.Context) opentracing.Span

ChildSpan returns a child span derived from the buffalo context "c"

func ChildSpanFromContext

func ChildSpanFromContext(ctx context.Context, opname string) opentracing.Span

ChildSpanFromContext takes an opname and context.Context and returns a span NB: Using this function will not mean that buffalo metadata won't be attached to the traces in the new Span

func OpenTracing

func OpenTracing(tr opentracing.Tracer) buffalo.MiddlewareFunc

OpenTracing is a buffalo middleware that adds the necessary components to the request to make it traced through OpenTracing. Initialize it by passing in an opentracing.Tracer.

func SpanFromContext

func SpanFromContext(c buffalo.Context) opentracing.Span

SpanFromContext attempts to retrieve a span from the Buffalo context, returning it if found. If none is found a new one is created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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