tracing

package
v0.0.0-...-79297db Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPMiddleware

func HTTPMiddleware(h http.Handler, s string) http.Handler

HTTPMiddleware for check context from request header or span a new one

func Init

func Init(service string) (opentracing.Tracer, io.Closer, error)

Init returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.

Types

type LogrusAdapter

type LogrusAdapter struct{}

LogrusAdapter is an adapter for Jaeger

func (LogrusAdapter) Error

func (l LogrusAdapter) Error(msg string)

func (LogrusAdapter) Infof

func (l LogrusAdapter) Infof(msg string, args ...interface{})

Infof for Jaeger

Jump to

Keyboard shortcuts

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