Update metrics-exporter-prometheus/src/lib.rs
Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
This commit is contained in:
parent
e2ba57bfa6
commit
6e61eb493b
|
@ -439,7 +439,7 @@ impl PrometheusBuilder {
|
|||
/// installing the recorder as the global recorder.
|
||||
#[cfg(feature = "tokio-exporter")]
|
||||
pub fn install(self) -> Result<(), Error> {
|
||||
let (recorder, exporter) = self.build()?;
|
||||
let (recorder, exporter) = self.build_with_exporter()?;
|
||||
metrics::set_boxed_recorder(Box::new(recorder))?;
|
||||
|
||||
let mut runtime = runtime::Builder::new()
|
||||
|
|
Loading…
Reference in New Issue