traced

Attribute Macro traced 

Source
#[traced]
Expand description

Marker attribute to opt a method into span propagation. Use on methods within a #[service] impl block.

#[service]
impl MyService {
    #[traced]
    pub async fn important_operation(&self) -> String {
        // This method will propagate the caller's tracing span
    }
}