tracerx

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceIDKey = "trace-id"
	JaegerType = "jaeger"
)

Variables

This section is empty.

Functions

func ChiOpenTracer

func ChiOpenTracer(options ...MWOption) func(next http.Handler) http.Handler

func Init

func Init(c Config)

func InitJaeger added in v0.1.14

func InitJaeger(c Config)

Types

type Config

type Config struct {
	Type        string
	ServiceName string
	Host        string
}

type MWOption

type MWOption func(*mwOptions)

MWOption controls the behavior of the Middleware.

func OperationNameFunc

func OperationNameFunc(f func(r *http.Request) string) MWOption

OperationNameFunc returns a MWOption that uses given function f to generate operation name for each server-side span.

Jump to

Keyboard shortcuts

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