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

Function EffectiveUserIDLogCtx

base/logging_context.go:244–249  ·  view source on GitHub ↗
(parent context.Context, domain, userID string)

Source from the content-addressed store, hash-verified

242}
243
244func EffectiveUserIDLogCtx(parent context.Context, domain, userID string) context.Context {
245 newCtx := getLogCtx(parent)
246 newCtx.EffectiveDomain = domain
247 newCtx.EffectiveUserID = userID
248 return LogContextWith(parent, &newCtx)
249}
250
251// KeyspaceLogCtx extends the parent context with a fully qualified keyspace (bucket.scope.collection)
252func KeyspaceLogCtx(parent context.Context, bucketName, scopeName, collectionName string) context.Context {

Callers 1

Calls 2

getLogCtxFunction · 0.85
LogContextWithFunction · 0.85

Tested by

no test coverage detected