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

Function KeyspaceLogCtx

base/logging_context.go:252–258  ·  view source on GitHub ↗

KeyspaceLogCtx extends the parent context with a fully qualified keyspace (bucket.scope.collection)

(parent context.Context, bucketName, scopeName, collectionName string)

Source from the content-addressed store, hash-verified

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 {
253 newCtx := getLogCtx(parent)
254 newCtx.Bucket = bucketName
255 newCtx.Collection = collectionName
256 newCtx.Scope = scopeName
257 return LogContextWith(parent, &newCtx)
258}
259
260type EffectiveUserPair struct {
261 UserID string `json:"user"`

Callers 7

RunMethod · 0.92
util_testing.goFile · 0.92
BenchmarkAuditFieldworkFunction · 0.85
TestCtxWorkflowFunction · 0.85
createCollectionsMethod · 0.85
bucketReadierWorkerMethod · 0.85

Calls 2

getLogCtxFunction · 0.85
LogContextWithFunction · 0.85

Tested by 2

BenchmarkAuditFieldworkFunction · 0.68
TestCtxWorkflowFunction · 0.68