trace

package
v0.0.0-...-a7ed0dc Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 20

Documentation

Index

Constants

View Source
const (
	RequestIdHeader = "X-Vcap-Request-Id"
)

Variables

View Source
var RequestIdHeaderCtxKey = RequestIdHeaderCtxKeyType{}

Functions

func ContextWithRequestId

func ContextWithRequestId(req *http.Request) context.Context

func GenerateTraceID

func GenerateTraceID() string

func LoggerWithTraceInfo

func LoggerWithTraceInfo(logger lager.Logger, traceIDStr string) lager.Logger

func RequestIdFromContext

func RequestIdFromContext(ctx context.Context) string

func RequestIdFromRequest

func RequestIdFromRequest(req *http.Request) string

Types

type RequestIdHeaderCtxKeyType

type RequestIdHeaderCtxKeyType struct{}

Jump to

Keyboard shortcuts

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