services: use start/stop_ttfb_metrics to report TTFB metrics

This commit is contained in:
Aleix Conchillo Flaqué
2024-06-06 13:51:59 -07:00
parent e765a29ca2
commit 390582d7f3
15 changed files with 85 additions and 62 deletions

View File

@@ -239,6 +239,13 @@ class StopInterruptionFrame(SystemFrame):
pass
@dataclass
class MetricsFrame(SystemFrame):
"""Emitted by processor who can compute metrics like latencies.
"""
ttfb: Mapping[str, float]
#
# Control frames
#