rs-metrics-process icon indicating copy to clipboard operation
rs-metrics-process copied to clipboard

Make the collector crate public

Open popadi opened this issue 2 years ago • 1 comments
trafficstars

Any chance to make the collector sub-module public? I'm interested in using the collect method to retrieve an instance of a Metrics struct and then expose it.

Why? My app is using prometheus/client_rust instead of metrics-exporter-prometheus, so the metrics export needs to be a bit different (more info about the Collector trait here, if you are interested). I could benefit from reusing some of the structs and functions defined in that sub-module.

popadi avatar May 04 '23 14:05 popadi

There is no particularly strong reason to do this, so if there is a PR with well-written documentation comments, we will review it 👍

lambdalisue avatar May 05 '23 10:05 lambdalisue