ragaai-catalyst 2.1.7.5b5__py3-none-any.whl → 2.1.7.5b6__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/exporters/ragaai_trace_exporter.py +21 -15
- {ragaai_catalyst-2.1.7.5b5.dist-info → ragaai_catalyst-2.1.7.5b6.dist-info}/METADATA +1 -1
- {ragaai_catalyst-2.1.7.5b5.dist-info → ragaai_catalyst-2.1.7.5b6.dist-info}/RECORD +6 -6
- {ragaai_catalyst-2.1.7.5b5.dist-info → ragaai_catalyst-2.1.7.5b6.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.1.7.5b5.dist-info → ragaai_catalyst-2.1.7.5b6.dist-info}/licenses/LICENSE +0 -0
- {ragaai_catalyst-2.1.7.5b5.dist-info → ragaai_catalyst-2.1.7.5b6.dist-info}/top_level.txt +0 -0
@@ -100,21 +100,27 @@ class RAGATraceExporter(SpanExporter):
|
|
100
100
|
if self.post_processor!=None and self.tracer_type != "langchain":
|
101
101
|
ragaai_trace_details['trace_file_path'] = self.post_processor(ragaai_trace_details['trace_file_path'])
|
102
102
|
if self.tracer_type == "langchain":
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
103
|
+
import threading
|
104
|
+
|
105
|
+
def upload_in_thread():
|
106
|
+
try:
|
107
|
+
thread_loop = asyncio.new_event_loop()
|
108
|
+
asyncio.set_event_loop(thread_loop)
|
109
|
+
try:
|
110
|
+
thread_loop.run_until_complete(
|
111
|
+
self.upload_rag_trace(ragaai_trace_details, additional_metadata, trace_id, self.post_processor)
|
112
|
+
)
|
113
|
+
logger.info(f"Successfully completed upload for trace {trace_id} in dedicated thread")
|
114
|
+
finally:
|
115
|
+
thread_loop.close()
|
116
|
+
except Exception as e:
|
117
|
+
logger.error(f"Error in upload thread for trace {trace_id}: {str(e)}")
|
118
|
+
|
119
|
+
upload_thread = threading.Thread(target=upload_in_thread)
|
120
|
+
upload_thread.daemon = True
|
121
|
+
upload_thread.start()
|
122
|
+
logger.info(f"Started dedicated upload thread for trace {trace_id}")
|
123
|
+
|
118
124
|
else:
|
119
125
|
self.upload_trace(ragaai_trace_details, trace_id)
|
120
126
|
except Exception as e:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.1.7.
|
3
|
+
Version: 2.1.7.5b6
|
4
4
|
Summary: RAGA AI CATALYST
|
5
5
|
Author-email: Kiran Scaria <kiran.scaria@raga.ai>, Kedar Gaikwad <kedar.gaikwad@raga.ai>, Dushyant Mahajan <dushyant.mahajan@raga.ai>, Siddhartha Kosti <siddhartha.kosti@raga.ai>, Ritika Goel <ritika.goel@raga.ai>, Vijay Chaurasia <vijay.chaurasia@raga.ai>, Tushar Kumar <tushar.kumar@raga.ai>
|
6
6
|
Requires-Python: <=3.13.2,>=3.10
|
@@ -77,7 +77,7 @@ ragaai_catalyst/tracers/exporters/__init__.py,sha256=wQbaqyeIjVZxYprHCKZ9BeiqxeX
|
|
77
77
|
ragaai_catalyst/tracers/exporters/dynamic_trace_exporter.py,sha256=v2V-y1l9t9gQQbqoi2jlEhm1xRQjR5yTyr6rxSriXCE,6303
|
78
78
|
ragaai_catalyst/tracers/exporters/file_span_exporter.py,sha256=RgGteu-NVGprXKkynvyIO5yOjpbtA41R3W_NzCjnkwE,6445
|
79
79
|
ragaai_catalyst/tracers/exporters/raga_exporter.py,sha256=6xvjWXyh8XPkHKSLLmAZUQSvwuyY17ov8pv2VdfI0qA,17875
|
80
|
-
ragaai_catalyst/tracers/exporters/ragaai_trace_exporter.py,sha256=
|
80
|
+
ragaai_catalyst/tracers/exporters/ragaai_trace_exporter.py,sha256=K5dy54bgUjYMDNT48qBuwx8ta245yQPIczCkFviAyd4,13290
|
81
81
|
ragaai_catalyst/tracers/instrumentators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
82
82
|
ragaai_catalyst/tracers/utils/__init__.py,sha256=KeMaZtYaTojilpLv65qH08QmpYclfpacDA0U3wg6Ybw,64
|
83
83
|
ragaai_catalyst/tracers/utils/convert_langchain_callbacks_output.py,sha256=SehrD7q8ytAiUYoWr406b4mWs3Lk0Rcy6Ekkihh22TI,1703
|
@@ -88,8 +88,8 @@ ragaai_catalyst/tracers/utils/model_prices_and_context_window_backup.json,sha256
|
|
88
88
|
ragaai_catalyst/tracers/utils/rag_trace_json_converter.py,sha256=adCKk7Nj8307XYYg2sB-QT-66OShOs2iTGwNVwqbHig,19373
|
89
89
|
ragaai_catalyst/tracers/utils/trace_json_converter.py,sha256=E0_QfciQMMpCtQYrNB4l8HJhlaFalr5bkMqkVRgQahY,14073
|
90
90
|
ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
|
91
|
-
ragaai_catalyst-2.1.7.
|
92
|
-
ragaai_catalyst-2.1.7.
|
93
|
-
ragaai_catalyst-2.1.7.
|
94
|
-
ragaai_catalyst-2.1.7.
|
95
|
-
ragaai_catalyst-2.1.7.
|
91
|
+
ragaai_catalyst-2.1.7.5b6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
92
|
+
ragaai_catalyst-2.1.7.5b6.dist-info/METADATA,sha256=xpZy8rtoEBjykChpgpFoIq_CfcqftU4yxR9ExxiROK4,17607
|
93
|
+
ragaai_catalyst-2.1.7.5b6.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
94
|
+
ragaai_catalyst-2.1.7.5b6.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
95
|
+
ragaai_catalyst-2.1.7.5b6.dist-info/RECORD,,
|
File without changes
|
{ragaai_catalyst-2.1.7.5b5.dist-info → ragaai_catalyst-2.1.7.5b6.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|