Skip to content

Commit

Permalink
Update for nom-openmetrics rename
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Feb 16, 2025
1 parent 5df4068 commit 5b33c7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/client/parse.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::Client;
use nom_openmetrics::{
parser::{exposition, prometheus},
parser::{openmetrics, prometheus},
Family, MetricDescriptor, Sample,
};
use nu_protocol::{record, LabeledError, Record, Span, Value};
Expand Down Expand Up @@ -30,7 +30,7 @@ impl<'a> Parse<'a> {

let (_, families) = match format {
ParseFormat::Prometheus => prometheus(input.as_str()?).unwrap(),
ParseFormat::Openmetrics => exposition(input.as_str()?).unwrap(),
ParseFormat::Openmetrics => openmetrics(input.as_str()?).unwrap(),
};

let families = families
Expand Down

0 comments on commit 5b33c7e

Please sign in to comment.