* It's responsible for recording "edit_resend" telemetry event. */ function sendCustomRequest({ telemetry }) { telemetry.recordEvent("edit_resend", "netmonitor"); } /** * This helper function is executed when network throttling is changed. * It's responsible for recording "throttle_changed" telemetry event. */ function throttlingChange({ action, telemetry }) { telemetry.recordEvent("throttle_changed", "netmonitor", null, { mode: action.profile, }); } /** * This helper function is executed when log persistence is changed. * It's responsible for recording "persist_changed" telemetry event. */ function persistenceChange({ telemetry, state }) { telemetry.recordEvent( "persist_changed", "netmonitor", String(state.ui.persistentLogsEnabled) ); } /** * This helper function is executed when a WS frame is selected. * It's responsible for recording "select_ws_frame" telemetry event. */ function selectMessage({ telemetry }) { telemetry.recordEvent("select_ws_frame", "netmonitor"); } module.exports = eventTelemetryMiddleware; PK