Skip to main content

normalize_http

Function normalize_http 

Source
pub fn normalize_http(method: &str, target: &str) -> HttpNormalized
Expand description

Normalize an HTTP target URL.

Replaces numeric segments with {id}, UUID segments with {uuid}, strips query params, and prepends the method. The callee host is kept in the template for DNS-addressed calls (GET user-svc/api/x) so two calls to the same path on different backends do not merge into one group and raise a false redundant/N+1 finding. IP-literal authorities are dropped, so load-balanced replicas (pods behind one service) still group together.