ImplicitDefaultCollectionCtx extends the parent context with _default._default collection. When logging, col:_default will not be shown.
(parent context.Context)
| 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 { |
| 215 | newCtx := getLogCtx(parent) |
| 216 | newCtx.implicitDefaultCollection = true |
| 217 | newCtx.Scope = DefaultScope |
| 218 | newCtx.Collection = DefaultCollection |
| 219 | return LogContextWith(parent, &newCtx) |
| 220 | } |
| 221 | |
| 222 | // CorrelationIDCtx extends the parent context with a correlation ID (HTTP request ID, BLIP context ID, etc.) |
| 223 | func CorrelationIDLogCtx(parent context.Context, correlationID string) context.Context { |