You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor(app): Hoist label extractor out of retry middleware
this commit promotes the `RetryLabelExtract` type out of the route retry
middleware, and into the metrics submodule.
in preparation for generalizing this component, we rename it to
`RouteLabelExtract`.
Signed-off-by: katelyn martin <[email protected]>
* refactor(app): Outline route label extraction
this addresses the `TODO` comment, moving the `RouteLabelExtract` type
out of the policy route layer function.
this defines a method on `MatchedRoute` which may be called to retrieve
a `RouteLabelExtract`. that type holds references to the
contruction-time information about the route, and can be used to later
inspect an outbound request at call-time, returning a `labels::Route`
set of labels.
this is a helpful piece of reusable glue that is broadly useful in
instrumenting our route-level middleware.
Signed-off-by: katelyn martin <[email protected]>
---------
Signed-off-by: katelyn martin <[email protected]>
0 commit comments