fix ruff formatting
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2024, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from pipecat.frames.frames import MetricsFrame
|
from pipecat.frames.frames import MetricsFrame
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2024, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
@@ -29,8 +35,10 @@ class SentryMetrics(FrameProcessorMetrics):
|
|||||||
description=f"TTFB for {self._processor_name()}",
|
description=f"TTFB for {self._processor_name()}",
|
||||||
start_timestamp=self._start_ttfb_time,
|
start_timestamp=self._start_ttfb_time,
|
||||||
)
|
)
|
||||||
logger.debug(f"Sentry Span ID: {self._ttfb_metrics_span.span_id} Description: {
|
logger.debug(
|
||||||
self._ttfb_metrics_span.description} started.")
|
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
|
self._should_report_ttfb = not report_only_initial_ttfb
|
||||||
|
|
||||||
async def stop_ttfb_metrics(self):
|
async def stop_ttfb_metrics(self):
|
||||||
@@ -46,8 +54,10 @@ class SentryMetrics(FrameProcessorMetrics):
|
|||||||
description=f"Processing for {self._processor_name()}",
|
description=f"Processing for {self._processor_name()}",
|
||||||
start_timestamp=self._start_processing_time,
|
start_timestamp=self._start_processing_time,
|
||||||
)
|
)
|
||||||
logger.debug(f"Sentry Span ID: {self._processing_metrics_span.span_id} Description: {
|
logger.debug(
|
||||||
self._processing_metrics_span.description} started.")
|
f"Sentry Span ID: {self._processing_metrics_span.span_id} Description: {
|
||||||
|
self._processing_metrics_span.description} started."
|
||||||
|
)
|
||||||
|
|
||||||
async def stop_processing_metrics(self):
|
async def stop_processing_metrics(self):
|
||||||
stop_time = time.time()
|
stop_time = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user