diff --git a/src/pipecat/processors/metrics/frame_processor_metrics.py b/src/pipecat/processors/metrics/frame_processor_metrics.py index a22639239..2c0099989 100644 --- a/src/pipecat/processors/metrics/frame_processor_metrics.py +++ b/src/pipecat/processors/metrics/frame_processor_metrics.py @@ -1,3 +1,9 @@ +# +# Copyright (c) 2024, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# + import time from pipecat.frames.frames import MetricsFrame diff --git a/src/pipecat/processors/metrics/sentry.py b/src/pipecat/processors/metrics/sentry.py index e37dd9d44..5c53ff526 100644 --- a/src/pipecat/processors/metrics/sentry.py +++ b/src/pipecat/processors/metrics/sentry.py @@ -1,3 +1,9 @@ +# +# Copyright (c) 2024, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# + import time from loguru import logger @@ -29,8 +35,10 @@ class SentryMetrics(FrameProcessorMetrics): description=f"TTFB for {self._processor_name()}", start_timestamp=self._start_ttfb_time, ) - logger.debug(f"Sentry Span ID: {self._ttfb_metrics_span.span_id} Description: { - self._ttfb_metrics_span.description} started.") + logger.debug( + f"Sentry Span ID: {self._ttfb_metrics_span.span_id} Description: { + self._ttfb_metrics_span.description} started." + ) self._should_report_ttfb = not report_only_initial_ttfb async def stop_ttfb_metrics(self): @@ -46,8 +54,10 @@ class SentryMetrics(FrameProcessorMetrics): description=f"Processing for {self._processor_name()}", start_timestamp=self._start_processing_time, ) - logger.debug(f"Sentry Span ID: {self._processing_metrics_span.span_id} Description: { - self._processing_metrics_span.description} started.") + logger.debug( + f"Sentry Span ID: {self._processing_metrics_span.span_id} Description: { + self._processing_metrics_span.description} started." + ) async def stop_processing_metrics(self): stop_time = time.time()