Skip to content

Commit 314c93c

Browse files
committed
chore(http/prom): body_data exports BodyDataMetrics
this structure representing the frame size metrics is shared by the request and response instrumentation. the `body_data::request` and `body_data::response` submodules reëxport this, because the outbound proxy which uses these middleware separately in route-level and backend-level metrics layers. the inbound proxy, however, uses them each in the same place (see #4180), which is ergonomically odd. this commit introduces a top-level `pub use`, exposing this metrics structure from `body_data`, for consumers that instrument request and response bodies in one place. Signed-off-by: katelyn martin <[email protected]>
1 parent f2e5da3 commit 314c93c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

linkerd/http/prom/src/body_data.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
pub use self::metrics::BodyDataMetrics;
2+
13
pub mod request;
24
pub mod response;
35

0 commit comments

Comments
 (0)