tracing

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPMethod     = "http.method"
	HTTPPath       = "http.path"
	HTTPStatusCode = "http.status_code"
	HTTPHost       = "http.host"
)

const for tracing

Variables

View Source
var TracerFuncMap = make(map[string]NewTracer)

TracerFuncMap saves NewTracer func key: impl name val: tracer new func

Functions

func Init

func Init() error

Init initialize the global tracer

func InstallTracer added in v0.8.1

func InstallTracer(name string, f NewTracer)

InstallTracer install new opentracing tracer

Types

type NewTracer added in v0.8.1

type NewTracer func(o map[string]string) (opentracing.Tracer, error)

NewTracer is the func to return global tracer

func GetTracerFunc added in v0.8.1

func GetTracerFunc(name string) (NewTracer, error)

GetTracerFunc get NewTracer

Jump to

Keyboard shortcuts

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