Merge pull request #3881 from pipecat-ai/mb/startup-observer

Add StartupTimingObserver
This commit is contained in:
Mark Backman
2026-03-02 16:07:28 -05:00
committed by GitHub
20 changed files with 796 additions and 7 deletions

View File

@@ -0,0 +1 @@
- Added `ClientConnectedFrame`, a new `SystemFrame` pushed by all transports (Daily, LiveKit, FastAPI WebSocket, WebSocket Server, SmallWebRTC, HeyGen, Tavus) when a client connects. Enables observers to track transport readiness timing.

View File

@@ -0,0 +1 @@
Added `BotConnectedFrame` for SFU transports and `on_transport_timing_report` event to `StartupTimingObserver` with bot and client connection timing.

1
changelog/3881.added.md Normal file
View File

@@ -0,0 +1 @@
- Added `StartupTimingObserver` for measuring how long each processor's `start()` method takes during pipeline startup. Also measures transport readiness — the time from `StartFrame` to first client connection — via the `on_transport_readiness_measured` event. Useful for diagnosing cold start slowness and identifying initialization bottlenecks.