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.
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_recorder has 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.