Skip to main content

write_flight_recorder

Function write_flight_recorder 

Source
pub fn write_flight_recorder(event: FlightRecorderEvent, level: Level)
Expand description

Write a single externally-sourced event (e.g. from TypeScript) directly into the global buffer, honoring the configured level floor.

This mirrors FlightRecorderLayer’s filter so that events routed around the tracing pipeline are subject to the same level check. Events more verbose than the configured floor are dropped. No-op if init_flight_recorder has not been called.