flying7eleven / fenrir-rs

Fenrir is a crate for using Loki for log aggregation which can be used with a logging framework like fern.
MIT License
2 stars 1 forks source link

Add support for ProtoBuffers for sending logging information #5

Open flying7eleven opened 1 year ago

flying7eleven commented 1 year ago

Currently the crate only supports logging messages send via JSON to the Loki backend. The recommended way for the best performance however is to use ProtoBuffers for the payload. This PR should implement this as an optional features for the crate.

tazz4843 commented 1 year ago

I attempted to implement protobufs in my fork but eventually abandoned it as there was basically no documentation on loki's side. If it helps, I can try to dig out the code I had prototyped and push it to GitHub. It's obviously incomplete but it might be useful to get started.