Update metrics-exporter-prometheus/src/lib.rs

Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
This commit is contained in:
Sean Kilgarriff 2020-11-02 07:17:47 -06:00 committed by GitHub
parent e2ba57bfa6
commit 6e61eb493b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()