We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 872dbf6 commit 2c16ebcCopy full SHA for 2c16ebc
src/encoding/proto.rs
@@ -272,6 +272,12 @@ impl EncodeGaugeValue for i64 {
272
}
273
274
275
+impl EncodeGaugeValue for u64 {
276
+ fn encode(&self) -> openmetrics_data_model::gauge_value::Value {
277
+ openmetrics_data_model::gauge_value::Value::IntValue(*self as i64)
278
+ }
279
+}
280
+
281
impl EncodeGaugeValue for f64 {
282
fn encode(&self) -> openmetrics_data_model::gauge_value::Value {
283
openmetrics_data_model::gauge_value::Value::DoubleValue(*self)
0 commit comments