Cleanup scanner processing span

This commit is contained in:
Zoe Roux 2025-11-23 15:19:04 +01:00
parent 3602905e86
commit c5fa3ecb01
No known key found for this signature in database

View File

@ -101,6 +101,7 @@ class RequestProcessor:
finally: finally:
self._processing = False self._processing = False
@tracer.start_as_current_span("process video")
async def process_request(self): async def process_request(self):
cur = await self._database.fetchrow( cur = await self._database.fetchrow(
""" """
@ -128,7 +129,8 @@ class RequestProcessor:
return False return False
request = Request.model_validate(cur) request = Request.model_validate(cur)
with tracer.start_as_current_span(f"process {request.title}") as span: span = trace.get_current_span()
span.update_name(f"process {request.title}")
logger.info(f"Starting to process {request.title}") logger.info(f"Starting to process {request.title}")
try: try:
show = await self._run_request(request) show = await self._run_request(request)