zap-prettyconsole icon indicating copy to clipboard operation
zap-prettyconsole copied to clipboard

Problem with OpenTelemetry context

Open jayakornk opened this issue 5 months ago • 1 comments

I'm using zap-prettyconsole along with OpenTelemetry for Gin and it injects tracing information into context. The problem I have is that when I log something, there will be this multiple line long object ([16]byte) printed out. Is there a way to help with this issue? Thanks for this awesome package btw.

api        | 6:22AM INFO > getting user [email protected]
api        |   ↳ context=trace.SpanContext{
api        |               traceID: trace.TraceID{
api        |                 83,
api        |                 174,
api        |                 1,
api        |                 192,
api        |                 31,
api        |                 53,
api        |                 183,
api        |                 30,
api        |                 167,
api        |                 27,
api        |                 123,
api        |                 237,
api        |                 239,
api        |                 28,
api        |                 103,
api        |                 221,
api        |               },
api        |               spanID: trace.SpanID{
api        |                 103,
api        |                 160,
api        |                 54,
api        |                 157,
api        |                 26,
api        |                 211,
api        |                 100,
api        |                 36,
api        |               },
api        |               traceFlags: 1,
api        |               traceState: trace.TraceState{
api        |                 list: ([]trace.member)(nil),
api        |               },
api        |               remote: false,
api        |             }

jayakornk avatar Sep 21 '24 08:09 jayakornk