ragaai-catalyst 2.1.5b35__py3-none-any.whl → 2.1.5b37__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ragaai_catalyst/tracers/agentic_tracing/tracers/base.py +20 -20
- ragaai_catalyst/tracers/agentic_tracing/upload/trace_uploader.py +221 -547
- ragaai_catalyst/tracers/exporters/__init__.py +3 -1
- ragaai_catalyst/tracers/exporters/dynamic_trace_exporter.py +145 -0
- ragaai_catalyst/tracers/exporters/ragaai_trace_exporter.py +121 -0
- ragaai_catalyst/tracers/tracer.py +117 -23
- ragaai_catalyst/tracers/utils/trace_json_converter.py +266 -0
- {ragaai_catalyst-2.1.5b35.dist-info → ragaai_catalyst-2.1.5b37.dist-info}/METADATA +5 -1
- {ragaai_catalyst-2.1.5b35.dist-info → ragaai_catalyst-2.1.5b37.dist-info}/RECORD +12 -9
- {ragaai_catalyst-2.1.5b35.dist-info → ragaai_catalyst-2.1.5b37.dist-info}/LICENSE +0 -0
- {ragaai_catalyst-2.1.5b35.dist-info → ragaai_catalyst-2.1.5b37.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.1.5b35.dist-info → ragaai_catalyst-2.1.5b37.dist-info}/top_level.txt +0 -0
@@ -305,7 +305,7 @@ class BaseTracer:
|
|
305
305
|
|
306
306
|
logger.debug("Base URL used for uploading: {}".format(self.base_url))
|
307
307
|
|
308
|
-
# Submit to background process for uploading
|
308
|
+
# Submit to background process for uploading using futures
|
309
309
|
self.upload_task_id = submit_upload_task(
|
310
310
|
filepath=filepath,
|
311
311
|
hash_id=hash_id,
|
@@ -317,28 +317,28 @@ class BaseTracer:
|
|
317
317
|
base_url=self.base_url
|
318
318
|
)
|
319
319
|
|
320
|
-
#
|
321
|
-
|
320
|
+
# For backward compatibility
|
321
|
+
self._is_uploading = True
|
322
322
|
|
323
|
-
#
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
323
|
+
# Start checking for completion if a callback is registered
|
324
|
+
if self._upload_completed_callback:
|
325
|
+
# Start a thread to check status and call callback when complete
|
326
|
+
def check_status_and_callback():
|
327
|
+
status = self.get_upload_status()
|
328
|
+
if status.get("status") in ["completed", "failed"]:
|
329
|
+
self._is_uploading = False
|
330
|
+
# Execute callback
|
331
|
+
try:
|
332
|
+
self._upload_completed_callback(self)
|
333
|
+
except Exception as e:
|
334
|
+
logger.error(f"Error in upload completion callback: {e}")
|
335
|
+
return
|
336
336
|
|
337
|
-
|
338
|
-
|
337
|
+
# Check again after a delay
|
338
|
+
threading.Timer(5.0, check_status_and_callback).start()
|
339
339
|
|
340
|
-
|
341
|
-
|
340
|
+
# Start checking
|
341
|
+
threading.Timer(5.0, check_status_and_callback).start()
|
342
342
|
|
343
343
|
logger.info(f"Submitted upload task with ID: {self.upload_task_id}")
|
344
344
|
|