Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
koushiro committed Sep 3, 2024
1 parent 3f8fe79 commit 0ab2369
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/layers/prometheus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl PrometheusLayerBuilder {
),
&labels,
)
.unwrap();
.unwrap();
let operation_bytes = HistogramVec::new(
histogram_opts!(
observe::METRIC_OPERATION_BYTES.name(),
Expand All @@ -220,7 +220,7 @@ impl PrometheusLayerBuilder {
),
&labels,
)
.unwrap();
.unwrap();

let labels = OperationLabels::names(true, self.path_label_level);
let operation_errors_total = GenericCounterVec::new(
Expand All @@ -230,7 +230,7 @@ impl PrometheusLayerBuilder {
),
&labels,
)
.unwrap();
.unwrap();

registry
.register(Box::new(operation_duration_seconds.clone()))
Expand Down Expand Up @@ -279,7 +279,7 @@ impl observe::MetricsIntercept for PrometheusInterceptor {
error: None,
path,
}
.into_values(self.path_label_level);
.into_values(self.path_label_level);

self.operation_duration_seconds
.with_label_values(&labels)
Expand All @@ -303,7 +303,7 @@ impl observe::MetricsIntercept for PrometheusInterceptor {
error: None,
path,
}
.into_values(self.path_label_level);
.into_values(self.path_label_level);

self.operation_bytes
.with_label_values(&labels)
Expand All @@ -327,7 +327,7 @@ impl observe::MetricsIntercept for PrometheusInterceptor {
error: Some(error),
path,
}
.into_values(self.path_label_level);
.into_values(self.path_label_level);

self.operation_errors_total.with_label_values(&labels).inc();
}
Expand Down

0 comments on commit 0ab2369

Please sign in to comment.