Skip to content

Commit

Permalink
review: rename get() to metrics()
Browse files Browse the repository at this point in the history
Signed-off-by: katelyn martin <[email protected]>
  • Loading branch information
cratelyn committed Nov 15, 2024
1 parent 3b1db24 commit 7731f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl<L: StreamLabel> RouteBackendMetrics<L> {
&self,
l: &labels::RouteBackend,
) -> linkerd_http_prom::body_data::response::BodyDataMetrics {
self.body_metrics.get(l)
self.body_metrics.metrics(l)
}
}

Expand Down Expand Up @@ -156,6 +156,6 @@ where
let Self(families) = self;
let labels = labels::RouteBackend(t.param(), t.param(), t.param());

families.get(&labels)
families.metrics(&labels)
}
}
2 changes: 1 addition & 1 deletion linkerd/http/prom/src/body_data/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ where
}

/// Returns the [`BodyDataMetrics`] for the given label set.
pub fn get(&self, labels: &L) -> BodyDataMetrics {
pub fn metrics(&self, labels: &L) -> BodyDataMetrics {
let Self {
resp_body_frames_total,
resp_body_frames_bytes,
Expand Down

0 comments on commit 7731f96

Please sign in to comment.