BucketNameCtx extends the parent context with a bucket name.
(parent context.Context, bucketName string)
| 197 | |
| 198 | // BucketNameCtx extends the parent context with a bucket name. |
| 199 | func BucketNameCtx(parent context.Context, bucketName string) context.Context { |
| 200 | newCtx := getLogCtx(parent) |
| 201 | newCtx.Bucket = bucketName |
| 202 | return LogContextWith(parent, &newCtx) |
| 203 | } |
| 204 | |
| 205 | // CollectionCtx extends the parent context with a collection name. |
| 206 | func CollectionLogCtx(parent context.Context, scopeName, collectionName string) context.Context { |