opentelemetry_semantic_conventions::attribute

Constant HTTP_ROUTE

source
pub const HTTP_ROUTE: &str = "http.route";
Expand description

The matched route, that is, the path template in the format used by the respective server framework.

§Notes

MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. SHOULD include the application root if there is one.

§Examples

  • "/users/:userID?"
  • "{controller}/{action}/{id?}"