ragaai-catalyst 2.0__py3-none-any.whl → 2.0.2__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/file_span_exporter.py +2 -17
- ragaai_catalyst/tracers/exporters/raga_exporter.py +2 -2
- {ragaai_catalyst-2.0.dist-info → ragaai_catalyst-2.0.2.dist-info}/METADATA +13 -13
- {ragaai_catalyst-2.0.dist-info → ragaai_catalyst-2.0.2.dist-info}/RECORD +6 -6
- {ragaai_catalyst-2.0.dist-info → ragaai_catalyst-2.0.2.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.0.dist-info → ragaai_catalyst-2.0.2.dist-info}/top_level.txt +0 -0
@@ -86,21 +86,6 @@ class FileSpanExporter(SpanExporter):
|
|
86
86
|
logger.debug(f"Writing jsonl file: {self.filename}")
|
87
87
|
f.write(json.dumps(export_data) + "\n")
|
88
88
|
|
89
|
-
# Write export_data to a JSON file named tracer.json in the current working directory
|
90
|
-
# tracer_json_path = os.path.join(os.getcwd(), "tracer.json")
|
91
|
-
# if os.path.exists(tracer_json_path):
|
92
|
-
# with open(tracer_json_path, "r+", encoding="utf-8") as tracer_file:
|
93
|
-
# logger.debug(f"Appending to json file: {tracer_json_path}")
|
94
|
-
# data = json.load(tracer_file)
|
95
|
-
# data.append(export_data)
|
96
|
-
# tracer_file.seek(0)
|
97
|
-
# json.dump(data, tracer_file, ensure_ascii=False, indent=4)
|
98
|
-
# else:
|
99
|
-
# with open(tracer_json_path, "w", encoding="utf-8") as tracer_file:
|
100
|
-
# logger.debug(f"Writing new json file: {tracer_json_path}")
|
101
|
-
# json.dump([export_data], tracer_file, ensure_ascii=False, indent=4)
|
102
|
-
|
103
|
-
|
104
89
|
|
105
90
|
if os.path.exists(json_file_path):
|
106
91
|
with open(json_file_path, "r") as f:
|
@@ -108,7 +93,8 @@ class FileSpanExporter(SpanExporter):
|
|
108
93
|
data.append(export_data)
|
109
94
|
with open(json_file_path, "w") as f:
|
110
95
|
logger.debug(f"Appending to json file: {json_file_path}")
|
111
|
-
json.dump(data, f)
|
96
|
+
json.dump(data, f)
|
97
|
+
|
112
98
|
else:
|
113
99
|
with open(json_file_path, "w") as f:
|
114
100
|
logger.debug(f"Writing json file: {json_file_path}")
|
@@ -118,7 +104,6 @@ class FileSpanExporter(SpanExporter):
|
|
118
104
|
# self._upload_task = self._run_async(self._upload_traces(json_file_path= self.sync_file))
|
119
105
|
self._run_async(self._upload_traces(json_file_path=self.sync_file))
|
120
106
|
self.sync_file = json_file_path
|
121
|
-
|
122
107
|
# asyncio.run(self.server_upload(json_file_path))
|
123
108
|
|
124
109
|
def _run_async(self, coroutine):
|
@@ -317,8 +317,8 @@ class RagaExporter:
|
|
317
317
|
"Content-Type": "application/json",
|
318
318
|
}
|
319
319
|
|
320
|
-
|
321
|
-
|
320
|
+
if "blob.core.windows.net" in url: # Azure
|
321
|
+
headers["x-ms-blob-type"] = "BlockBlob"
|
322
322
|
print(f"Uploading traces...")
|
323
323
|
logger.debug(f"Uploading file:{file_path} with url {url}")
|
324
324
|
|
@@ -1,23 +1,23 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.0
|
3
|
+
Version: 2.0.2
|
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>
|
6
6
|
Requires-Python: >=3.9
|
7
7
|
Description-Content-Type: text/markdown
|
8
8
|
Requires-Dist: aiohttp>=3.10.2
|
9
|
-
Requires-Dist: opentelemetry-api==1.
|
10
|
-
Requires-Dist: opentelemetry-sdk==1.
|
11
|
-
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc==1.
|
12
|
-
Requires-Dist: opentelemetry-instrumentation==0.
|
13
|
-
Requires-Dist: opentelemetry-instrumentation-fastapi==0.
|
14
|
-
Requires-Dist: opentelemetry-instrumentation-asgi==0.
|
15
|
-
Requires-Dist: opentelemetry-semantic-conventions==0.
|
16
|
-
Requires-Dist: opentelemetry-util-http==0.
|
17
|
-
Requires-Dist: opentelemetry-instrumentation-langchain
|
18
|
-
Requires-Dist: opentelemetry-instrumentation-openai
|
19
|
-
Requires-Dist: langchain-core
|
20
|
-
Requires-Dist: langchain
|
9
|
+
Requires-Dist: opentelemetry-api==1.25.0
|
10
|
+
Requires-Dist: opentelemetry-sdk==1.25.0
|
11
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc==1.25.0
|
12
|
+
Requires-Dist: opentelemetry-instrumentation==0.46b0
|
13
|
+
Requires-Dist: opentelemetry-instrumentation-fastapi==0.46b0
|
14
|
+
Requires-Dist: opentelemetry-instrumentation-asgi==0.46b0
|
15
|
+
Requires-Dist: opentelemetry-semantic-conventions==0.46b0
|
16
|
+
Requires-Dist: opentelemetry-util-http==0.46b0
|
17
|
+
Requires-Dist: opentelemetry-instrumentation-langchain~=0.24.0
|
18
|
+
Requires-Dist: opentelemetry-instrumentation-openai~=0.24.0
|
19
|
+
Requires-Dist: langchain-core>=0.2.11
|
20
|
+
Requires-Dist: langchain>=0.2.11
|
21
21
|
Requires-Dist: openai>=1.35.10
|
22
22
|
Requires-Dist: pandas>=2.1.1
|
23
23
|
Provides-Extra: dev
|
@@ -9,15 +9,15 @@ ragaai_catalyst/utils.py,sha256=TlhEFwLyRU690HvANbyoRycR3nQ67lxVUQoUOfTPYQ0,3772
|
|
9
9
|
ragaai_catalyst/tracers/__init__.py,sha256=NppmJhD3sQ5R1q6teaZLS7rULj08Gb6JT8XiPRIe_B0,49
|
10
10
|
ragaai_catalyst/tracers/tracer.py,sha256=eaGJdLEIjadHpbWBXBl5AhMa2vL97SVjik4U1L8gros,9591
|
11
11
|
ragaai_catalyst/tracers/exporters/__init__.py,sha256=kVA8zp05h3phu4e-iHSlnznp_PzMRczB7LphSsZgUjg,138
|
12
|
-
ragaai_catalyst/tracers/exporters/file_span_exporter.py,sha256=
|
13
|
-
ragaai_catalyst/tracers/exporters/raga_exporter.py,sha256=
|
12
|
+
ragaai_catalyst/tracers/exporters/file_span_exporter.py,sha256=IS90_9QjHMSX4qX2-aUeNm7MWwjZpAjPBKdRmNnUAdM,6371
|
13
|
+
ragaai_catalyst/tracers/exporters/raga_exporter.py,sha256=rQ5Wj71f2Ke3qLlV8KiWCskbGBR-ia_hlzDx86rPrEo,18188
|
14
14
|
ragaai_catalyst/tracers/instrumentators/__init__.py,sha256=FgnMQupoRTzmVsG9YKsLQera2Pfs-AluZv8CxwavoyQ,253
|
15
15
|
ragaai_catalyst/tracers/instrumentators/langchain.py,sha256=yMN0qVF0pUVk6R5M1vJoUXezDo1ejs4klCFRlE8x4vE,574
|
16
16
|
ragaai_catalyst/tracers/instrumentators/llamaindex.py,sha256=SMrRlR4xM7k9HK43hakE8rkrWHxMlmtmWD-AX6TeByc,416
|
17
17
|
ragaai_catalyst/tracers/instrumentators/openai.py,sha256=14R4KW9wQCR1xysLfsP_nxS7cqXrTPoD8En4MBAaZUU,379
|
18
18
|
ragaai_catalyst/tracers/utils/__init__.py,sha256=KeMaZtYaTojilpLv65qH08QmpYclfpacDA0U3wg6Ybw,64
|
19
19
|
ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
|
20
|
-
ragaai_catalyst-2.0.dist-info/METADATA,sha256=
|
21
|
-
ragaai_catalyst-2.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
22
|
-
ragaai_catalyst-2.0.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
23
|
-
ragaai_catalyst-2.0.dist-info/RECORD,,
|
20
|
+
ragaai_catalyst-2.0.2.dist-info/METADATA,sha256=2AQLzVdFbIAKIvnEkIlU69bqBvYi4PRVrUCQq7ZTMPA,6466
|
21
|
+
ragaai_catalyst-2.0.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
22
|
+
ragaai_catalyst-2.0.2.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
23
|
+
ragaai_catalyst-2.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|