WithTraceID returns a Logger that has information about the traceID in its details.
(traceID string, l kitlog.Logger)
| 19 | // WithTraceID returns a Logger that has information about the traceID in |
| 20 | // its details. |
| 21 | func WithTraceID(traceID string, l kitlog.Logger) kitlog.Logger { |
| 22 | // See note in WithContext. |
| 23 | return kitlog.With(l, "traceID", traceID) |
| 24 | } |
| 25 | |
| 26 | // WithContext returns a Logger that has information about the current user in |
| 27 | // its details. |