Skip to content

Commit

Permalink
fix ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Dec 17, 2024
1 parent d6bac77 commit da15c83
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/pipecat/processors/metrics/frame_processor_metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

import time

from pipecat.frames.frames import MetricsFrame
Expand Down
18 changes: 14 additions & 4 deletions src/pipecat/processors/metrics/sentry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2024, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

import time
from loguru import logger

Expand Down Expand Up @@ -29,8 +35,10 @@ async def start_ttfb_metrics(self, report_only_initial_ttfb):
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):
Expand All @@ -46,8 +54,10 @@ async def start_processing_metrics(self):
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()
Expand Down

0 comments on commit da15c83

Please sign in to comment.