client_rust
client_rust copied to clipboard
encoding/proto: Add a trait combining EncodeMetric, Send and Sync
The same as encoding::text, I added SendSyncEncodeMetric trait combining EncodeMetric, Send, and Sync.
Why add another trait with the same definition as the encoding::text one? Maybe there should just be one trait that gets used in both places (text and protobuf encodings).
With https://github.com/prometheus/client_rust/pull/105 merged and released, this is resolved.