Skip to content

Commit

Permalink
Adding multi-operation metric reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuter committed Jul 21, 2021
1 parent b894c71 commit ce8622a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ impl DefaultConsoleReporter {
by_operation.insert(
operation.to_owned(),
self.build_item_report(
&metrics
metrics
.by_operation
.get(&operation)
.expect("Operation key cannot be missing"),
Expand Down
2 changes: 1 addition & 1 deletion src/prometheus_reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl PrometheusReporter {
) -> io::Result<()> {
info!("Sending metrics to Prometheus: {}", self.address,);

let registry = PrometheusReporter::build_registry(operation_name, &metrics);
let registry = PrometheusReporter::build_registry(operation_name, metrics);

let metric_families = registry.gather();

Expand Down

0 comments on commit ce8622a

Please sign in to comment.