trace_api

Attribute Macro trace_api 

Source
#[trace_api]
Expand description

§Syntax

#[trace_api("path"[, attributes])]

§Attributes

  • "path": Raw literal string with path for which to register handler.

§Examples

#[trace_api("/")]
async fn example() -> impl IntoResponse {
    "hello world"
}