vector icon indicating copy to clipboard operation
vector copied to clipboard

Add a pretty json encoding for better testing / configuring experience

Open lsampras opened this issue 1 year ago • 2 comments

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

lsampras avatar Apr 26 '24 07:04 lsampras

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 avatar Apr 26 '24 13:04 jszwedko

@jszwedko I've opened #20384 for adding this, Can you take a look at that once?

lsampras avatar Apr 26 '24 19:04 lsampras