Skip to main content

SpanEndHook

Trait SpanEndHook 

Source
pub trait SpanEndHook<O> { }
Expand description

Runs when an instrumented future completes, to add properties to the span’s end event from the future’s output.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<O, H> SpanEndHook<O> for H
where H: FnOnce(&O, &mut SpanProperties),

Source§

impl<O> SpanEndHook<O> for EntryProperties

Source§

impl<O> SpanEndHook<O> for NoHook