metrics: allow sending only initial TTFB metrics

This commit is contained in:
Aleix Conchillo Flaqué
2024-06-13 13:28:10 -07:00
parent 77a3b2ea5c
commit cb27e86266
7 changed files with 25 additions and 3 deletions

View File

@@ -76,7 +76,8 @@ async def main(room_url: str, token):
task = PipelineTask(pipeline, PipelineParams(
allow_interruptions=True,
enable_metrics=True
enable_metrics=True,
report_only_initial_ttfb=True,
))
@transport.event_handler("on_first_participant_joined")