Add a pretty json encoding for better testing / configuring experience
A note for the community
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Use Cases
A better UX when users are trying to build/configure their pipeline, the primary usage would be with the console sink.
Pretty-json is much more friendlier to infer the structure of your data.
Attempted Solutions
I've attempted this on my fork and seems to work pretty well, although I might be missing edge cases or making invalid assumptions...
Proposal
Adding a simple encoding would work here based on underlying serde_json::to_writer_pretty implementation.
References
No response
Version
0.37.1
Thanks @lsampras ! I took a quick look at your branch and I think this is something we'd accept as a contribution if you feel inclined to open a pull request.
@jszwedko I've opened #20384 for adding this, Can you take a look at that once?