pub fn emit(
emitter: impl Emitter,
filter: impl Filter,
ctxt: impl Ctxt,
clock: impl Clock,
evt: impl ToEvent,
)Expand description
Emit an event.
This function uses the components of the runtime to process the event. It will:
- Attempt to assign an extent to the event using
clock::Clock::nowif the event doesn’t already have one. - Add
ctxt::Ctxt::Currentto the event properties. - Ensure the event passes
filter::Filter::matches. - Emit the event through
emitter::Emitter::emit.