tracing

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestId      = "request.id"
	HTTPMethod     = "http.method"
	HTTPUrl        = "http.url"
	HTTPStatusCode = "http.status_code"
	DBType         = "db.type"
)

Variables

View Source
var (
	DefaultFlushInterval = 1 * time.Second
	DefaultAgentAddress  = "127.0.0.1:6831"
)

Functions

func GetRequestId

func GetRequestId(ctx context.Context) string

func GlobalTracer

func GlobalTracer() opentracing.Tracer

func Init

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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