Documentation ¶
Index ¶
- Constants
- Variables
- func ContextWithRequestId(req *http.Request) context.Context
- func GenerateTraceID() string
- func LoggerWithTraceInfo(logger lager.Logger, traceIDStr string) lager.Logger
- func RequestIdFromContext(ctx context.Context) string
- func RequestIdFromRequest(req *http.Request) string
- type RequestIdHeaderCtxKeyType
Constants ¶
View Source
const (
RequestIdHeader = "X-Vcap-Request-Id"
)
Variables ¶
View Source
var RequestIdHeaderCtxKey = RequestIdHeaderCtxKeyType{}
Functions ¶
func GenerateTraceID ¶
func GenerateTraceID() string
func LoggerWithTraceInfo ¶
func LoggerWithTraceInfo(logger lager.Logger, traceIDStr string) lager.Logger
func RequestIdFromContext ¶
func RequestIdFromRequest ¶
Types ¶
type RequestIdHeaderCtxKeyType ¶
type RequestIdHeaderCtxKeyType struct{}
Click to show internal directories.
Click to hide internal directories.