Skip to main content

Module global

Module global 

Source
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(). Mirrors FlightRecorderLayerโ€™s level so that direct writes via write_flight_recorder honor the same filter as the tracing 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.
write_flight_recorder
Write a single externally-sourced event (e.g. from TypeScript) directly into the global buffer, honoring the configured level floor.