MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / RequestLogCtx

Function RequestLogCtx

base/logging_context.go:295–301  ·  view source on GitHub ↗
(parent context.Context, d RequestData)

Source from the content-addressed store, hash-verified

293}
294
295func RequestLogCtx(parent context.Context, d RequestData) context.Context {
296 newCtx := getLogCtx(parent)
297 newCtx.CorrelationID = d.CorrelationID
298 newCtx.RequestHost = d.RequestHost
299 newCtx.RequestRemoteAddr = d.RequestRemoteAddr
300 return LogContextWith(parent, &newCtx)
301}
302
303// LogContextKey is the type used to store custom data in the go context
304type LogContextKey int

Callers 2

ctxMethod · 0.92
BenchmarkAuditFieldworkFunction · 0.85

Calls 2

getLogCtxFunction · 0.85
LogContextWithFunction · 0.85

Tested by 1

BenchmarkAuditFieldworkFunction · 0.68