KeyspaceLogCtx extends the parent context with a fully qualified keyspace (bucket.scope.collection)
(parent context.Context, bucketName, scopeName, collectionName string)
| 250 | |
| 251 | // KeyspaceLogCtx extends the parent context with a fully qualified keyspace (bucket.scope.collection) |
| 252 | func 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 | |
| 260 | type EffectiveUserPair struct { |
| 261 | UserID string `json:"user"` |