New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protobuf support #83
Protobuf support #83
Commits on Aug 29, 2022
-
Rough implementation to encode Counter
Compile error: error[E0277]: the trait bound `Box<dyn text::SendEncodeMetric>: proto::EncodeMetric` is not satisfied --> src/encoding/proto.rs:151:33 | 151 | println!("{:?}", encode(®istry)); | ------ ^^^^^^^^^ the trait `proto::EncodeMetric` is not implemented for `Box<dyn text::SendEncodeMetric>` | | | required by a bound introduced by this call Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b78dbaf - Browse repository at this point
Copy the full SHA b78dbafView commit details -
src/encoding/proto: Construct Registry with proto::EncodeMetric
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e2e96f9 - Browse repository at this point
Copy the full SHA e2e96f9View commit details -
src/encoding/proto: Implement encoding for labels
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for abb66df - Browse repository at this point
Copy the full SHA abb66dfView commit details -
src/encoding/proto: Implement encoding for CounterWithExemplar
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 33b527f - Browse repository at this point
Copy the full SHA 33b527fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3e6afc - Browse repository at this point
Copy the full SHA a3e6afcView commit details -
src/encoding/proto: Implement encoding for Gauge
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c3bb963 - Browse repository at this point
Copy the full SHA c3bb963View commit details -
src/encoding/proto: Implement encoding for Histogram
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d29e2d3 - Browse repository at this point
Copy the full SHA d29e2d3View commit details -
src/encoding/proto: Tweak function name according to encoding::text
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 18ca645 - Browse repository at this point
Copy the full SHA 18ca645View commit details -
src/encoding/proto: Implement encoding for HistogramWithExemplars
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9c97af5 - Browse repository at this point
Copy the full SHA 9c97af5View commit details -
src/encoding/proto: Move function for readability
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ca45f64 - Browse repository at this point
Copy the full SHA ca45f64View commit details -
src/encoding/proto: Implement encoding for Info
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d76e7a0 - Browse repository at this point
Copy the full SHA d76e7a0View commit details -
src/encoding/proto: Add tests for Counter
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4b31a21 - Browse repository at this point
Copy the full SHA 4b31a21View commit details -
src/encoding/proto: Add assertions for MetricType
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 571c707 - Browse repository at this point
Copy the full SHA 571c707View commit details -
src/encoding/proto: DRY-ed tests with
extract_metric_point_value
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 84a0745 - Browse repository at this point
Copy the full SHA 84a0745View commit details -
src/encoding/proto: Assert name and help
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 90d8b00 - Browse repository at this point
Copy the full SHA 90d8b00View commit details -
src/encoding/proto: Refactor: use associated constants
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 03fc057 - Browse repository at this point
Copy the full SHA 03fc057View commit details -
src/encoding/proto: Add assertions for counter.exemplar
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 745160c - Browse repository at this point
Copy the full SHA 745160cView commit details -
src/encoding/proto: Add assertion for Unit
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4b839c9 - Browse repository at this point
Copy the full SHA 4b839c9View commit details -
src/encoding/proto: Refactoring: extract a method
Unit::as_str()
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 202d457 - Browse repository at this point
Copy the full SHA 202d457View commit details -
src/encoding/proto: Remove superfluous comments
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2e7e35a - Browse repository at this point
Copy the full SHA 2e7e35aView commit details -
src/encoding/proto: Add tests for Family
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bd90dc3 - Browse repository at this point
Copy the full SHA bd90dc3View commit details -
src/encoding/proto: Remove redundant test
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c1b38a2 - Browse repository at this point
Copy the full SHA c1b38a2View commit details -
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 92b4493 - Browse repository at this point
Copy the full SHA 92b4493View commit details -
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3cfe085 - Browse repository at this point
Copy the full SHA 3cfe085View commit details -
src/encoding/proto: Refactoring for loop
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ee6344a - Browse repository at this point
Copy the full SHA ee6344aView commit details -
Implement proc macro
EncodeProtobuf
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cc0df24 - Browse repository at this point
Copy the full SHA cc0df24View commit details -
Add impl EncodeGaugeValue for u64
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7040f2a - Browse repository at this point
Copy the full SHA 7040f2aView commit details -
Build error below occurs: error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates --> src/encoding/proto.rs:199:6 | 199 | impl<'a, N, A> EncodeMetric for Counter<N, A> | ^^ unconstrained lifetime parameter Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6cf6e09 - Browse repository at this point
Copy the full SHA 6cf6e09View commit details -
Build error: error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates --> src/encoding/proto.rs:199:6 | 199 | impl<'a, N, A> EncodeMetric for Counter<N, A> | ^^ unconstrained lifetime parameter Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 887beff - Browse repository at this point
Copy the full SHA 887beffView commit details -
Make EncodeLabel::encode return iterator
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 49a3dfb - Browse repository at this point
Copy the full SHA 49a3dfbView commit details -
src/encoding/proto: Refactor EncodeLabel and EncodeMetric
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3b8dc35 - Browse repository at this point
Copy the full SHA 3b8dc35View commit details -
Fix assertions because of changes of the order of result
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f07148b - Browse repository at this point
Copy the full SHA f07148bView commit details -
Remove unnecessary lifetime parameter
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0583a66 - Browse repository at this point
Copy the full SHA 0583a66View commit details -
Rename EncodeLabel -> EncodeLabels
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 88fe41e - Browse repository at this point
Copy the full SHA 88fe41eView commit details -
Using
Void
to indicate the impossible caseSigned-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e5a37a3 - Browse repository at this point
Copy the full SHA e5a37a3View commit details -
Changed proc macro accordingly since
encode
returns iteratorSigned-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7d2c6a0 - Browse repository at this point
Copy the full SHA 7d2c6a0View commit details -
Rename the proc macro since the name was a bit redundant
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2e55b46 - Browse repository at this point
Copy the full SHA 2e55b46View commit details -
Add a test for Family (counter and histogram)
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 83a0b89 - Browse repository at this point
Copy the full SHA 83a0b89View commit details -
Add benchmark code for proto encoding
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 00dcdd1 - Browse repository at this point
Copy the full SHA 00dcdd1View commit details -
Add a test for Family, Counter and Histogram
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f20ae6b - Browse repository at this point
Copy the full SHA f20ae6bView commit details -
Remove
Box
to reduce allocation countSigned-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 50ca0a9 - Browse repository at this point
Copy the full SHA 50ca0a9View commit details -
Use std::iter::Once on enums as enum returns single element
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6afc9b7 - Browse repository at this point
Copy the full SHA 6afc9b7View commit details -
encoding/proto: Pass metric and label vec
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 289241c - Browse repository at this point
Copy the full SHA 289241cView commit details -
derive-proto-encode: Update according to the changes in encoding/proto
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dd69b89 - Browse repository at this point
Copy the full SHA dd69b89View commit details -
Cargo.toml: Make
void
optionalvoid is used in only encoding/proto. Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2f8d1a3 - Browse repository at this point
Copy the full SHA 2f8d1a3View commit details -
benches: Update according to the changes in encoding/proto
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 547e1b4 - Browse repository at this point
Copy the full SHA 547e1b4View commit details -
encoding/proto: same implementation to slice
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f8c621a - Browse repository at this point
Copy the full SHA f8c621aView commit details -
Bump the crate version and add a changelog entry
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2d169ad - Browse repository at this point
Copy the full SHA 2d169adView commit details -
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4b7c75f - Browse repository at this point
Copy the full SHA 4b7c75fView commit details
Commits on Aug 30, 2022
-
Remove unnecessary generic parameter
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 48745c4 - Browse repository at this point
Copy the full SHA 48745c4View commit details
Commits on Sep 5, 2022
-
Merge derive-proto-encode into derive-text-encode
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f367ebf - Browse repository at this point
Copy the full SHA f367ebfView commit details -
protobuf
feature requires DisplaySigned-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 870cdae - Browse repository at this point
Copy the full SHA 870cdaeView commit details -
Rename
prometheus-client-derive-text-encode
to `prometheus-client-d……erive-encode` Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 26ec648 - Browse repository at this point
Copy the full SHA 26ec648View commit details -
derive-encode: Bump up patch version because of adding protobuf feature
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2fb5f1f - Browse repository at this point
Copy the full SHA 2fb5f1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d70145 - Browse repository at this point
Copy the full SHA 1d70145View commit details
Commits on Sep 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 15dc7a7 - Browse repository at this point
Copy the full SHA 15dc7a7View commit details -
Fix clippy warnings: field assignment outside of initializer for an i…
…nstance created with Default::default() https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bb08122 - Browse repository at this point
Copy the full SHA bb08122View commit details -
Fix clippy warnings: an implementation of
From
is preferredhttps://rust-lang.github.io/rust-clippy/master/index.html#from_over_into Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 766c650 - Browse repository at this point
Copy the full SHA 766c650View commit details -
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e99575b - Browse repository at this point
Copy the full SHA e99575bView commit details -
Fix clippy warnings: manual implementation of
Option::map
https://rust-lang.github.io/rust-clippy/master/index.html#manual_map Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a6c797b - Browse repository at this point
Copy the full SHA a6c797bView commit details -
Fix clippy warnings: explicit lifetimes given in parameter types wher…
…e they could be elided https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cc9f739 - Browse repository at this point
Copy the full SHA cc9f739View commit details -
Fix clippy warnings: called
map(..).flatten()
onOption
https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d106aa3 - Browse repository at this point
Copy the full SHA d106aa3View commit details -
Allow some lint warnings on openmetrics.rs which is an auto-generated…
… file Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 77c9c22 - Browse repository at this point
Copy the full SHA 77c9c22View commit details -
`not found in this scope` error occurs when no feature specified Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ec56224 - Browse repository at this point
Copy the full SHA ec56224View commit details -
Move
Encode
trait fromprometheus_client::encoding::text
to `prome……theus_client::encoding` Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d992bad - Browse repository at this point
Copy the full SHA d992badView commit details -
Bump up the minor version as the unreleased contains breaking changes
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8fce756 - Browse repository at this point
Copy the full SHA 8fce756View commit details -
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 639cb0a - Browse repository at this point
Copy the full SHA 639cb0aView commit details
Commits on Sep 10, 2022
-
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ca0f583 - Browse repository at this point
Copy the full SHA ca0f583View commit details -
Signed-off-by: ackintosh <sora.akatsuki@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8baf256 - Browse repository at this point
Copy the full SHA 8baf256View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a2190d - Browse repository at this point
Copy the full SHA 3a2190dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 396512f - Browse repository at this point
Copy the full SHA 396512fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20fd62e - Browse repository at this point
Copy the full SHA 20fd62eView commit details -
- `assert!(false, ..)` should probably be replaced - redundant clone - field assignment outside of initializer for an instance created with Default::default()
Configuration menu - View commit details
-
Copy full SHA for 8ac25a5 - Browse repository at this point
Copy the full SHA 8ac25a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5b61f1 - Browse repository at this point
Copy the full SHA f5b61f1View commit details -
Merge pull request #9 from ackintosh/remove-display
Remove a `Display` requirement and fix CI errors
Configuration menu - View commit details
-
Copy full SHA for 69f85ba - Browse repository at this point
Copy the full SHA 69f85baView commit details