Expand description
Global Flight Recorder buffer and convenience accessors.
Statics§
- FLIGHT_
RECORDER_ 🔒BUFFER - Global Flight Recorder buffer, initialized during
init_sdk(). - FLIGHT_
RECORDER_ 🔒LEVEL - Configured level floor for the global Flight Recorder, initialized during
init_sdk(). MirrorsFlightRecorderLayer’s level so that direct writes viawrite_flight_recorderhonor the same filter as the tracing layer. - FLIGHT_
RECORDER_ 🔒SINK - Active sink of the global Flight Recorder, shared with its layer.
Functions§
- flight_
recorder_ count - Get the current event count without reading event contents.
- get_
flight_ recorder_ buffer - Get the global Flight Recorder buffer.
- init_
flight_ recorder - Initialize the global Flight Recorder.
- read_
flight_ recorder - Read all events from the global Flight Recorder buffer.
- set_
flight_ recorder_ sink - Replace the global Flight Recorder’s active sink. Events already in the local buffer stay
there. No-op if
init_flight_recorderhas not been called. - write_
flight_ recorder - Write a single externally-sourced event (e.g. from TypeScript) into the global Flight Recorder’s active sink, honoring the configured level floor.