tikv / rust-prometheus

Prometheus instrumentation library for Rust applications
Apache License 2.0
1.07k stars 182 forks source link

Why value module is private? #435

Closed rajaSahil closed 2 years ago

rajaSahil commented 2 years ago

While implementing a new collector, I am not able to initialize Value. Is there any reason to make it a private module?

breezewish commented 2 years ago

@rajaSahil Hi, currently the publicly exposed interfaces are standard metric types like Counter, Histogram and Gauge. Could you illustrate what kind of Value type do you need when implementing a collector?

rajaSahil commented 2 years ago

Was trying to write a custom collector and have figured it out. Closing this issue as it is not required.