📈(summary) delete observability span for minio

Delete useless span for observability minio get_object
This commit is contained in:
Martin Guitteny
2025-10-03 10:16:54 +02:00
parent a9e9cffc21
commit 7f2308e040
+4 -13
View File
@@ -267,19 +267,10 @@ def process_audio_transcribe_summarize_v2( # noqa: PLR0915
logger.debug("Connection to the Minio bucket successful")
with obs.span(
name="minio.get_object",
input={
"bucket": settings.aws_storage_bucket_name,
"key": filename,
"endpoint": settings.aws_s3_endpoint_url,
"secure": settings.aws_s3_secure_access,
},
):
audio_file_stream = minio_client.get_object(
settings.aws_storage_bucket_name, object_name=filename
)
temp_file_path = save_audio_stream(audio_file_stream)
audio_file_stream = minio_client.get_object(
settings.aws_storage_bucket_name, object_name=filename
)
temp_file_path = save_audio_stream(audio_file_stream)
logger.info("Recording successfully downloaded")
logger.debug("Recording filepath: %s", temp_file_path)