igpapi — Instagram private API Simulator for Node.js (API reference) 4.19.0
    Preparing search index...

    Function FlushTelemetry

    • Sends everything the device has pending on every channel the platform declares for the caller's own flush (flushesAt naming explicit: Pigeon, never the health counters, which go only on their own rhythm), in the declared order, and reports what went out. It is the caller's explicit action inside a program (yield* FlushTelemetry()); the process's own sender (MobileTelemetrySender) sends on the app's reasons beside it, and the flush runs under that sender's lock (reason explicit), so it never overlaps one of the sender's deliveries. A process that runs no sender (iOS) delivers through this flush and its close. An empty queue sends nothing; a channel the transport or the server rejects fails with TelemetryDeliveryError, its events still pending, and the next flush sends the same ones again.

      Pigeon sends only into a session the process began: the Android launch begins it where the app's first upload of the process goes out, and emitPigeonInfraBatches (@igpapi/pigeon-nest) begins it for a program that composes the app layer itself. A process that never began it dies with TelemetryDeliverySessionError (reason: 'session', a defect: the caller broke the order) and the batch stays in the queue.

      Returns Effect<TelemetryFlushResult, TelemetryDeliveryError>