ioa-observe-sdk 1.0.0__py3-none-any.whl → 1.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.
- ioa_observe/sdk/instrumentations/slim.py +0 -18
- {ioa_observe_sdk-1.0.0.dist-info → ioa_observe_sdk-1.0.2.dist-info}/METADATA +8 -6
- {ioa_observe_sdk-1.0.0.dist-info → ioa_observe_sdk-1.0.2.dist-info}/RECORD +6 -6
- {ioa_observe_sdk-1.0.0.dist-info → ioa_observe_sdk-1.0.2.dist-info}/WHEEL +0 -0
- {ioa_observe_sdk-1.0.0.dist-info → ioa_observe_sdk-1.0.2.dist-info}/licenses/LICENSE.md +0 -0
- {ioa_observe_sdk-1.0.0.dist-info → ioa_observe_sdk-1.0.2.dist-info}/top_level.txt +0 -0
|
@@ -49,10 +49,6 @@ class SLIMInstrumentor(BaseInstrumentor):
|
|
|
49
49
|
# Use the helper function for consistent traceparent
|
|
50
50
|
traceparent = get_current_traceparent()
|
|
51
51
|
|
|
52
|
-
if traceparent:
|
|
53
|
-
# Retrieve execution_id using the same traceparent
|
|
54
|
-
print("traceparent in publish method:", traceparent)
|
|
55
|
-
|
|
56
52
|
# Thread-safe access to kv_store
|
|
57
53
|
execution_id = None
|
|
58
54
|
if traceparent:
|
|
@@ -60,10 +56,6 @@ class SLIMInstrumentor(BaseInstrumentor):
|
|
|
60
56
|
execution_id = kv_store.get(f"execution.{traceparent}")
|
|
61
57
|
if execution_id:
|
|
62
58
|
kv_store.set(f"execution.{traceparent}", execution_id)
|
|
63
|
-
|
|
64
|
-
print(
|
|
65
|
-
f"Publishing message with traceparent: {traceparent}, execution_id: {execution_id}"
|
|
66
|
-
)
|
|
67
59
|
# Add tracing context to the message headers
|
|
68
60
|
headers = {
|
|
69
61
|
"execution_id": execution_id if execution_id else None,
|
|
@@ -130,10 +122,6 @@ class SLIMInstrumentor(BaseInstrumentor):
|
|
|
130
122
|
traceparent = headers.get("traceparent")
|
|
131
123
|
execution_id = headers.get("execution_id")
|
|
132
124
|
|
|
133
|
-
print(
|
|
134
|
-
f"Received message with traceparent: {traceparent}, execution_id: {execution_id}"
|
|
135
|
-
)
|
|
136
|
-
|
|
137
125
|
# First, extract and restore the trace context from headers
|
|
138
126
|
carrier = {}
|
|
139
127
|
for key in ["traceparent", "Traceparent", "baggage", "Baggage"]:
|
|
@@ -149,9 +137,6 @@ class SLIMInstrumentor(BaseInstrumentor):
|
|
|
149
137
|
|
|
150
138
|
# Now set execution ID with the restored context
|
|
151
139
|
if execution_id and execution_id != "None":
|
|
152
|
-
print(
|
|
153
|
-
f"Setting execution ID with restored context: {execution_id} for traceparent: {traceparent}"
|
|
154
|
-
)
|
|
155
140
|
# Pass the traceparent explicitly to prevent new context creation
|
|
156
141
|
set_execution_id(execution_id, traceparent=traceparent)
|
|
157
142
|
|
|
@@ -163,9 +148,6 @@ class SLIMInstrumentor(BaseInstrumentor):
|
|
|
163
148
|
if traceparent and (not execution_id or execution_id == "None"):
|
|
164
149
|
with _kv_lock:
|
|
165
150
|
stored_execution_id = kv_store.get(f"execution.{traceparent}")
|
|
166
|
-
print(
|
|
167
|
-
f"Stored execution ID for traceparent {traceparent}: {stored_execution_id}"
|
|
168
|
-
)
|
|
169
151
|
if stored_execution_id:
|
|
170
152
|
execution_id = stored_execution_id
|
|
171
153
|
set_execution_id(execution_id, traceparent=traceparent)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ioa-observe-sdk
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: IOA Observability SDK
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -70,9 +70,11 @@ Requires-Dist: urllib3==2.3.0
|
|
|
70
70
|
Requires-Dist: wrapt==1.17.2
|
|
71
71
|
Requires-Dist: yarl==1.18.3
|
|
72
72
|
Requires-Dist: zipp==3.21.0
|
|
73
|
-
Requires-Dist: langgraph
|
|
74
|
-
Requires-Dist: langchain
|
|
75
|
-
Requires-Dist: langchain-openai
|
|
73
|
+
Requires-Dist: langgraph>=0.3.2
|
|
74
|
+
Requires-Dist: langchain>=0.3.19
|
|
75
|
+
Requires-Dist: langchain-openai>=0.3.8
|
|
76
|
+
Requires-Dist: langchain-community>=0.3.25
|
|
77
|
+
Requires-Dist: llama-index>=0.12.34
|
|
76
78
|
Requires-Dist: opentelemetry-instrumentation-requests
|
|
77
79
|
Requires-Dist: opentelemetry-instrumentation-transformers>=0.40.2
|
|
78
80
|
Requires-Dist: opentelemetry-instrumentation-crewai>=0.40.2
|
|
@@ -91,7 +93,6 @@ IOA observability SDK for your multi-agentic application.
|
|
|
91
93
|
- [Usage](#usage)
|
|
92
94
|
- [Features](#features)
|
|
93
95
|
- [Contributing](#contributing)
|
|
94
|
-
- [License](#license)
|
|
95
96
|
|
|
96
97
|
## Installation
|
|
97
98
|
|
|
@@ -152,7 +153,8 @@ OPENAI_API_KEY=<KEY> make test
|
|
|
152
153
|
|
|
153
154
|
## Getting Started
|
|
154
155
|
|
|
155
|
-
For getting started with the SDK, please refer to the [
|
|
156
|
+
For getting started with the SDK, please refer to the [Getting Started](https://github.com/agntcy/observe/blob/main/GETTING-STARTED.md)
|
|
157
|
+
file. It contains detailed instructions on how to set up and use the SDK effectively.
|
|
156
158
|
|
|
157
159
|
## SLIM-Based Multi-Agentic Systems
|
|
158
160
|
|
|
@@ -13,7 +13,7 @@ ioa_observe/sdk/decorators/__init__.py,sha256=4Jf207nnJR1B371aAqYh17JWp2lsbG1IdX
|
|
|
13
13
|
ioa_observe/sdk/decorators/base.py,sha256=5NAfap6adbemrSAPCSo-rOWsBoh0-T4xY0eiA4OcOzg,24261
|
|
14
14
|
ioa_observe/sdk/decorators/util.py,sha256=QZH5k2vIvf7UVjV5Exw3I4S5NrlWVQdkOyd4bpAsjCw,25097
|
|
15
15
|
ioa_observe/sdk/instrumentations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
ioa_observe/sdk/instrumentations/slim.py,sha256=
|
|
16
|
+
ioa_observe/sdk/instrumentations/slim.py,sha256=odOnULHV5WqlyiMQ1W8RmoyWJ1jeU66opiuvl6r2U4s,7708
|
|
17
17
|
ioa_observe/sdk/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
ioa_observe/sdk/logging/logging.py,sha256=HZxW9s8Due7jgiNkdI38cIjv5rC9D-Flta3RQMOnpow,2891
|
|
19
19
|
ioa_observe/sdk/metrics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -36,8 +36,8 @@ ioa_observe/sdk/utils/const.py,sha256=GwbHakKPjBL4wLqAVkDrSoKB-8p18EUrbaqPuRuV_x
|
|
|
36
36
|
ioa_observe/sdk/utils/in_memory_span_exporter.py,sha256=H_4TRaThMO1H6vUQ0OpQvzJk_fZH0OOsRAM1iZQXsR8,2112
|
|
37
37
|
ioa_observe/sdk/utils/json_encoder.py,sha256=g4NQ0tTqgWssY6I1D7r4zo0G6PiUo61jhofTAw5-jno,639
|
|
38
38
|
ioa_observe/sdk/utils/package_check.py,sha256=1d1MjxhwoEZIx9dumirT2pRsEWgn-m-SI4npDeEalew,576
|
|
39
|
-
ioa_observe_sdk-1.0.
|
|
40
|
-
ioa_observe_sdk-1.0.
|
|
41
|
-
ioa_observe_sdk-1.0.
|
|
42
|
-
ioa_observe_sdk-1.0.
|
|
43
|
-
ioa_observe_sdk-1.0.
|
|
39
|
+
ioa_observe_sdk-1.0.2.dist-info/licenses/LICENSE.md,sha256=55VjUfgjWOS4vv3Cf55gfq-RxjPgRIO2vlgYPUuC5lA,11362
|
|
40
|
+
ioa_observe_sdk-1.0.2.dist-info/METADATA,sha256=SJDIHAGULj5E5jGapjj82tZ0nlZgmkwQ8aTrlZP9Onc,7251
|
|
41
|
+
ioa_observe_sdk-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
42
|
+
ioa_observe_sdk-1.0.2.dist-info/top_level.txt,sha256=Yt-6Y1olZEDqCs2REeqI30WjYx0pLGQSVqzYmDd67N8,12
|
|
43
|
+
ioa_observe_sdk-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|