LogContextWith is called to add custom context to the go context. All custom contexts should implement ContextAdder interface
(parent context.Context, adder ContextAdder)
| 323 | // LogContextWith is called to add custom context to the go context. |
| 324 | // All custom contexts should implement ContextAdder interface |
| 325 | func LogContextWith(parent context.Context, adder ContextAdder) context.Context { |
| 326 | return context.WithValue(parent, adder.getContextKey(), adder) |
| 327 | } |
| 328 | |
| 329 | // ServerLogContext stores server context data for logging |
| 330 | type ServerLogContext struct { |