tracerx

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ChiOpenTracer

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

func Init

func Init(c Config)

Types

type Config

type Config struct {
	ServiceName     string
	JaegerAgentHost 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