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

Function AuditLogCtx

base/logging_context.go:238–242  ·  view source on GitHub ↗

AuditLogCtx extends the parent context with additional audit fields

(parent context.Context, additionalAuditFields map[string]any)

Source from the content-addressed store, hash-verified

236
237// AuditLogCtx extends the parent context with additional audit fields
238func AuditLogCtx(parent context.Context, additionalAuditFields map[string]any) context.Context {
239 newCtx := getLogCtx(parent)
240 newCtx.RequestAdditionalAuditFields = additionalAuditFields
241 return LogContextWith(parent, &newCtx)
242}
243
244func EffectiveUserIDLogCtx(parent context.Context, domain, userID string) context.Context {
245 newCtx := getLogCtx(parent)

Callers 2

Calls 2

getLogCtxFunction · 0.85
LogContextWithFunction · 0.85

Tested by 1