CollectionCtx extends the parent context with a collection name.
(parent context.Context, scopeName, collectionName string)
| 204 | |
| 205 | // CollectionCtx extends the parent context with a collection name. |
| 206 | func CollectionLogCtx(parent context.Context, scopeName, collectionName string) context.Context { |
| 207 | newCtx := getLogCtx(parent) |
| 208 | newCtx.Scope = scopeName |
| 209 | newCtx.Collection = collectionName |
| 210 | return LogContextWith(parent, &newCtx) |
| 211 | } |
| 212 | |
| 213 | // ImplicitDefaultCollectionCtx extends the parent context with _default._default collection. When logging, col:_default will not be shown. |
| 214 | func ImplicitDefaultCollectionLogCtx(parent context.Context) context.Context { |