SentryMetrics: send metrics to sentry asynchronously

This commit is contained in:
Aleix Conchillo Flaqué
2025-06-24 08:42:47 -07:00
parent 7953e1e9d9
commit 1f1da8942d
5 changed files with 59 additions and 9 deletions

View File

@@ -7,7 +7,6 @@
import argparse
import asyncio
import os
import random
from contextlib import asynccontextmanager
from typing import Any, Dict
@@ -26,13 +25,11 @@ from pipecat.frames.frames import (
Frame,
InterimTranscriptionFrame,
LLMFullResponseEndFrame,
LLMTextFrame,
StartFrame,
StartInterruptionFrame,
StopFrame,
StopInterruptionFrame,
TranscriptionFrame,
TTSTextFrame,
UserStartedSpeakingFrame,
UserStoppedSpeakingFrame,
)
@@ -49,7 +46,7 @@ from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
from pipecat.processors.frameworks.rtvi import RTVIConfig, RTVIProcessor
from pipecat.serializers.protobuf import ProtobufFrameSerializer
from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram import DeepgramSTTService
from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.openai.llm import OpenAILLMService
from pipecat.transports.network.fastapi_websocket import (
FastAPIWebsocketParams,