aiqa-client 0.1.3__py3-none-any.whl → 0.1.4__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.
- aiqa/__init__.py +1 -1
- aiqa/tracing.py +10 -0
- {aiqa_client-0.1.3.dist-info → aiqa_client-0.1.4.dist-info}/METADATA +1 -1
- aiqa_client-0.1.4.dist-info/RECORD +9 -0
- aiqa_client-0.1.3.dist-info/RECORD +0 -9
- {aiqa_client-0.1.3.dist-info → aiqa_client-0.1.4.dist-info}/WHEEL +0 -0
- {aiqa_client-0.1.3.dist-info → aiqa_client-0.1.4.dist-info}/licenses/LICENSE +0 -0
- {aiqa_client-0.1.3.dist-info → aiqa_client-0.1.4.dist-info}/top_level.txt +0 -0
aiqa/__init__.py
CHANGED
aiqa/tracing.py
CHANGED
|
@@ -185,7 +185,12 @@ def WithTracing(
|
|
|
185
185
|
del input_data[key]
|
|
186
186
|
|
|
187
187
|
# Use start_as_current_span to ensure span is recorded by BatchSpanProcessor
|
|
188
|
+
# This automatically manages context and ends the span when exiting
|
|
188
189
|
with tracer.start_as_current_span(fn_name) as span:
|
|
190
|
+
# Ensure span is recording
|
|
191
|
+
if not span.is_recording():
|
|
192
|
+
logger.warning(f"Span {fn_name} is not recording - tracing may not work")
|
|
193
|
+
|
|
189
194
|
if input_data is not None:
|
|
190
195
|
# Serialize for span attributes (OpenTelemetry only accepts primitives or JSON strings)
|
|
191
196
|
serialized_input = _serialize_for_span(input_data)
|
|
@@ -235,7 +240,12 @@ def WithTracing(
|
|
|
235
240
|
del input_data[key]
|
|
236
241
|
|
|
237
242
|
# Use start_as_current_span to ensure span is recorded by BatchSpanProcessor
|
|
243
|
+
# This automatically manages context and ends the span when exiting
|
|
238
244
|
with tracer.start_as_current_span(fn_name) as span:
|
|
245
|
+
# Ensure span is recording
|
|
246
|
+
if not span.is_recording():
|
|
247
|
+
logger.warning(f"Span {fn_name} is not recording - tracing may not work")
|
|
248
|
+
|
|
239
249
|
if input_data is not None:
|
|
240
250
|
# Serialize for span attributes (OpenTelemetry only accepts primitives or JSON strings)
|
|
241
251
|
serialized_input = _serialize_for_span(input_data)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
aiqa/__init__.py,sha256=MwDG0A3kszFsknTCxQ3l8lX1QB2soTMSMZ2YhI7FcYU,470
|
|
2
|
+
aiqa/aiqa_exporter.py,sha256=vXyX6Q_iOjrDz3tCPOMXuBTQg7ocACdOOqzpkUqhy9g,19131
|
|
3
|
+
aiqa/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
aiqa/tracing.py,sha256=Aq4VbX6czSO7LtIcA6tTXghtw9-upZ802g3DNylzoq8,12680
|
|
5
|
+
aiqa_client-0.1.4.dist-info/licenses/LICENSE,sha256=kIzkzLuzG0HHaWYm4F4W5FeJ1Yxut3Ec6bhLWyw798A,1062
|
|
6
|
+
aiqa_client-0.1.4.dist-info/METADATA,sha256=WU-tzSni5NhyJfUHdq4f0lX6JHOPW0VRGrtkW6XL7mo,3772
|
|
7
|
+
aiqa_client-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
aiqa_client-0.1.4.dist-info/top_level.txt,sha256=nwcsuVVSuWu27iLxZd4n1evVzv1W6FVTrSnCXCc-NQs,5
|
|
9
|
+
aiqa_client-0.1.4.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
aiqa/__init__.py,sha256=mQWkldjxytAru66UBU5aRiENpR9hPsqxY5FBSqLwS60,470
|
|
2
|
-
aiqa/aiqa_exporter.py,sha256=vXyX6Q_iOjrDz3tCPOMXuBTQg7ocACdOOqzpkUqhy9g,19131
|
|
3
|
-
aiqa/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
aiqa/tracing.py,sha256=TnKkasn9ESofNMzztTMAOhs_OfD6WZj1KS1U2Ikbypk,12084
|
|
5
|
-
aiqa_client-0.1.3.dist-info/licenses/LICENSE,sha256=kIzkzLuzG0HHaWYm4F4W5FeJ1Yxut3Ec6bhLWyw798A,1062
|
|
6
|
-
aiqa_client-0.1.3.dist-info/METADATA,sha256=lqRVBC0F7vbpeC0akkvRcn_c84vkwTLuwCzX6FTzpDs,3772
|
|
7
|
-
aiqa_client-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
aiqa_client-0.1.3.dist-info/top_level.txt,sha256=nwcsuVVSuWu27iLxZd4n1evVzv1W6FVTrSnCXCc-NQs,5
|
|
9
|
-
aiqa_client-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|