Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
koushiro committed Aug 29, 2024
1 parent a16deb6 commit e1e89f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/layers/prometheus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl PrometheusLayer {
self
}

/// Set buckets for `bytes` histogram.
/// Set buckets for `operation_bytes` histogram.
pub fn operation_bytes_buckets(mut self, buckets: Vec<f64>) -> Self {
if !buckets.is_empty() {
self.operation_bytes_buckets = buckets;
Expand Down Expand Up @@ -207,7 +207,7 @@ impl PrometheusInterceptor {
&labels,
registry
)
.unwrap();
.unwrap();
let operation_bytes = register_histogram_vec_with_registry!(
histogram_opts!(
observe::METRIC_OPERATION_BYTES.name(),
Expand All @@ -217,14 +217,14 @@ impl PrometheusInterceptor {
&labels,
registry
)
.unwrap();
.unwrap();
let operation_errors_total = register_int_counter_vec_with_registry!(
observe::METRIC_OPERATION_ERRORS_TOTAL.name(),
observe::METRIC_OPERATION_ERRORS_TOTAL.help(),
&labels_with_error,
registry
)
.unwrap();
.unwrap();

Self {
operation_duration_seconds,
Expand Down

0 comments on commit e1e89f4

Please sign in to comment.