How to wrap all fields in a nested object #1292
Unanswered
mohit-singh-pepper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to wrap all additional fields in a 'labels' object to not clutter the root without giving up on speed and type safety of zap.
Ofc 1 way is writing an encoder but zap's json encoder is quite nicely written, I don't want to replace it with a expensive json.Marhsal after wrapping in labels. If extending that is possible let me know.
Beta Was this translation helpful? Give feedback.
All reactions