client_rust icon indicating copy to clipboard operation
client_rust copied to clipboard

encoding/proto: Add a trait combining EncodeMetric, Send and Sync

Open ackintosh opened this issue 3 years ago • 1 comments

The same as encoding::text, I added SendSyncEncodeMetric trait combining EncodeMetric, Send, and Sync.

ackintosh avatar Sep 25 '22 22:09 ackintosh

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).

adamchalmers avatar Sep 27 '22 00:09 adamchalmers

With https://github.com/prometheus/client_rust/pull/105 merged and released, this is resolved.

mxinden avatar Dec 29 '22 15:12 mxinden