agent-observability-trace-cli 0.1.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.
Files changed (51) hide show
  1. agent_observability_trace_cli-0.1.2.dist-info/METADATA +336 -0
  2. agent_observability_trace_cli-0.1.2.dist-info/RECORD +51 -0
  3. agent_observability_trace_cli-0.1.2.dist-info/WHEEL +4 -0
  4. agent_observability_trace_cli-0.1.2.dist-info/entry_points.txt +2 -0
  5. agent_observability_trace_cli-0.1.2.dist-info/licenses/LICENSE +198 -0
  6. agent_trace/__init__.py +1182 -0
  7. agent_trace/_cli.py +1377 -0
  8. agent_trace/_inspect.py +2020 -0
  9. agent_trace/_replay/__init__.py +1 -0
  10. agent_trace/_replay/engine.py +268 -0
  11. agent_trace/_replay/fixture.py +868 -0
  12. agent_trace/core/__init__.py +1 -0
  13. agent_trace/core/clock.py +91 -0
  14. agent_trace/core/exceptions.py +51 -0
  15. agent_trace/core/span.py +271 -0
  16. agent_trace/core/trace.py +92 -0
  17. agent_trace/exporters/__init__.py +1 -0
  18. agent_trace/exporters/file.py +80 -0
  19. agent_trace/exporters/otlp.py +199 -0
  20. agent_trace/exporters/remote_fixture.py +307 -0
  21. agent_trace/exporters/stdout.py +258 -0
  22. agent_trace/integrations/__init__.py +69 -0
  23. agent_trace/integrations/agno.py +489 -0
  24. agent_trace/integrations/autogen.py +581 -0
  25. agent_trace/integrations/crewai.py +486 -0
  26. agent_trace/integrations/google_genai.py +731 -0
  27. agent_trace/integrations/haystack.py +254 -0
  28. agent_trace/integrations/langchain_core.py +361 -0
  29. agent_trace/integrations/langgraph.py +2093 -0
  30. agent_trace/integrations/langgraph_checkpoint.py +763 -0
  31. agent_trace/integrations/langgraph_state_diff.py +345 -0
  32. agent_trace/integrations/langgraph_stream_debug.py +202 -0
  33. agent_trace/integrations/llama_index.py +472 -0
  34. agent_trace/integrations/mcp.py +281 -0
  35. agent_trace/integrations/openai_agents.py +811 -0
  36. agent_trace/integrations/pydantic_ai.py +504 -0
  37. agent_trace/integrations/streaming.py +218 -0
  38. agent_trace/interceptor/__init__.py +64 -0
  39. agent_trace/interceptor/aiohttp_hook.py +152 -0
  40. agent_trace/interceptor/botocore_hook.py +223 -0
  41. agent_trace/interceptor/grpc_hook.py +651 -0
  42. agent_trace/interceptor/httpx_hook.py +866 -0
  43. agent_trace/interceptor/logging_hook.py +137 -0
  44. agent_trace/interceptor/requests_patch.py +184 -0
  45. agent_trace/interceptor/sse.py +176 -0
  46. agent_trace/interceptor/stdio_hook.py +245 -0
  47. agent_trace/interceptor/warnings_hook.py +132 -0
  48. agent_trace/interceptor/websocket_hook.py +323 -0
  49. agent_trace/plugins/__init__.py +35 -0
  50. agent_trace/plugins/base.py +111 -0
  51. agent_trace/py.typed +0 -0
@@ -0,0 +1,336 @@
1
+ Metadata-Version: 2.4
2
+ Name: agent-observability-trace-cli
3
+ Version: 0.1.2
4
+ Summary: AI agent observability with deterministic record/replay — capture any LangGraph or OpenAI Agents SDK run, replay it offline at zero API cost.
5
+ Project-URL: Homepage, https://github.com/RudrenduPaul/agent-observability
6
+ Project-URL: Documentation, https://github.com/RudrenduPaul/agent-observability/blob/main/docs/getting-started.md
7
+ Project-URL: Repository, https://github.com/RudrenduPaul/agent-observability
8
+ Project-URL: Bug Tracker, https://github.com/RudrenduPaul/agent-observability/issues
9
+ Project-URL: Changelog, https://github.com/RudrenduPaul/agent-observability/blob/main/CHANGELOG.md
10
+ Project-URL: Author - Rudrendu Paul, https://github.com/RudrenduPaul
11
+ Project-URL: Author - Sourav Nandy, https://github.com/Sourav-nandy-ai
12
+ Author: Rudrendu Paul, Sourav Nandy
13
+ License: Apache-2.0
14
+ License-File: LICENSE
15
+ Keywords: agents,debugging,langgraph,llm,observability,openai,replay,tracing
16
+ Classifier: Development Status :: 3 - Alpha
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: License :: OSI Approved :: Apache Software License
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Topic :: Software Development :: Debuggers
25
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.10
28
+ Requires-Dist: httpx>=0.27
29
+ Requires-Dist: rich>=13.0
30
+ Provides-Extra: agno
31
+ Requires-Dist: agno>=2.7; extra == 'agno'
32
+ Provides-Extra: aiohttp
33
+ Requires-Dist: aiohttp>=3.9; extra == 'aiohttp'
34
+ Provides-Extra: autogen
35
+ Requires-Dist: autogen-agentchat>=0.4; extra == 'autogen'
36
+ Requires-Dist: autogen-ext[openai]>=0.4; extra == 'autogen'
37
+ Provides-Extra: botocore
38
+ Requires-Dist: boto3>=1.34; extra == 'botocore'
39
+ Provides-Extra: crewai
40
+ Requires-Dist: crewai>=1.0.0; extra == 'crewai'
41
+ Provides-Extra: dev
42
+ Requires-Dist: aiohttp>=3.9; extra == 'dev'
43
+ Requires-Dist: aioresponses>=0.7; extra == 'dev'
44
+ Requires-Dist: boto3>=1.34; extra == 'dev'
45
+ Requires-Dist: groq>=0.9; extra == 'dev'
46
+ Requires-Dist: grpcio-tools>=1.60; extra == 'dev'
47
+ Requires-Dist: grpcio>=1.60; extra == 'dev'
48
+ Requires-Dist: langchain-classic>=1.0; extra == 'dev'
49
+ Requires-Dist: langchain-core>=0.3; extra == 'dev'
50
+ Requires-Dist: mypy>=1.10; extra == 'dev'
51
+ Requires-Dist: pre-commit>=3.7; extra == 'dev'
52
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
53
+ Requires-Dist: pytest-benchmark[histogram]>=4.0; extra == 'dev'
54
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
55
+ Requires-Dist: pytest-env>=1.0; extra == 'dev'
56
+ Requires-Dist: pytest>=8.0; extra == 'dev'
57
+ Requires-Dist: requests>=2.31; extra == 'dev'
58
+ Requires-Dist: respx>=0.21; extra == 'dev'
59
+ Requires-Dist: ruff>=0.5; extra == 'dev'
60
+ Requires-Dist: types-requests>=2.31; extra == 'dev'
61
+ Requires-Dist: websockets>=13.0; extra == 'dev'
62
+ Provides-Extra: google-genai
63
+ Requires-Dist: google-genai>=2.0; extra == 'google-genai'
64
+ Requires-Dist: langchain-google-genai>=4.0; extra == 'google-genai'
65
+ Provides-Extra: groq
66
+ Requires-Dist: groq>=0.9; extra == 'groq'
67
+ Provides-Extra: grpc
68
+ Requires-Dist: grpcio>=1.60; extra == 'grpc'
69
+ Provides-Extra: haystack
70
+ Requires-Dist: haystack-ai>=2.0; extra == 'haystack'
71
+ Provides-Extra: langchain
72
+ Requires-Dist: langchain-core>=0.3; extra == 'langchain'
73
+ Provides-Extra: langgraph
74
+ Requires-Dist: langchain-core>=0.3; extra == 'langgraph'
75
+ Requires-Dist: langgraph>=1.0.10; extra == 'langgraph'
76
+ Provides-Extra: llama-index
77
+ Requires-Dist: llama-index-core>=0.14; extra == 'llama-index'
78
+ Provides-Extra: mcp
79
+ Requires-Dist: mcp>=1.26; extra == 'mcp'
80
+ Provides-Extra: openai-agents
81
+ Requires-Dist: openai-agents>=0.0.3; extra == 'openai-agents'
82
+ Provides-Extra: otlp
83
+ Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.25; extra == 'otlp'
84
+ Provides-Extra: pydantic-ai
85
+ Requires-Dist: pydantic-ai>=2.0; extra == 'pydantic-ai'
86
+ Provides-Extra: realtime
87
+ Requires-Dist: websockets>=13.0; extra == 'realtime'
88
+ Provides-Extra: requests
89
+ Requires-Dist: requests>=2.31; extra == 'requests'
90
+ Description-Content-Type: text/markdown
91
+
92
+ # Agent Observability
93
+
94
+ **Deterministic record/replay for LLM agents.** Capture a failing agent run once, reproduce it offline in under 2 ms with zero API calls, on any Python HTTP client.
95
+
96
+ ![Terminal recording of agent-trace recording a live HTTP call, then replaying the same run offline with zero network requests](docs/assets/dev-to-demos/demo-1-record-replay.gif)
97
+
98
+ [![PyPI](https://img.shields.io/pypi/v/agent-observability-trace)](https://pypi.org/project/agent-observability-trace/)
99
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
100
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
101
+ [![CI](https://github.com/RudrenduPaul/agent-observability/actions/workflows/ci.yml/badge.svg)](https://github.com/RudrenduPaul/agent-observability/actions)
102
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/RudrenduPaul/agent-observability/badge)](https://securityscorecards.dev/viewer/?uri=github.com/RudrenduPaul/agent-observability)
103
+
104
+ ---
105
+
106
+ ## Install
107
+
108
+ ```bash
109
+ pip install agent-observability-trace
110
+ # or
111
+ uv add agent-observability-trace
112
+ ```
113
+
114
+ LangGraph support:
115
+
116
+ ```bash
117
+ pip install agent-observability-trace[langgraph]
118
+ ```
119
+
120
+ OpenAI Agents SDK support:
121
+
122
+ ```bash
123
+ pip install agent-observability-trace[openai-agents]
124
+ ```
125
+
126
+ ## The problem
127
+
128
+ A LangGraph run fails after step 8. Your trace in LangSmith or Langfuse shows *what* broke. But to reproduce it you have to re-run the entire agent: 8 more LLM calls, 30 more seconds, another $0.15 in API cost. If the failure was caused by a specific tool response or a transient model output, you can't reproduce it at all. You're debugging against a moving target.
129
+
130
+ **Agent Observability solves this at the HTTP transport layer.** It records every request and response verbatim to a local SQLite file. Replay serves those exact bytes back in sequence, in under 1 ms per exchange: same code path, same span tree, same failure. No API calls.
131
+
132
+ ```
133
+ Recording overhead: 0.011% (0.090 ms added per LLM call — 0.011% of GPT-4o p50)
134
+ Replay latency: 0.93 ms mean (vs ~8,500 ms live on GPT-4o × 10 steps)
135
+ Replay fidelity: 100% (response bytes byte-for-byte identical to recorded)
136
+ CI cost per replay: $0
137
+ ```
138
+
139
+ ---
140
+
141
+ ## Quick start
142
+
143
+ ```python
144
+ from agent_trace import tracer
145
+ import httpx
146
+
147
+ @tracer.instrument(record=True)
148
+ def fetch_data(query: str) -> dict:
149
+ with tracer.span("http-call") as span:
150
+ resp = httpx.get("https://httpbin.org/get", params={"q": query})
151
+ span.set_attribute("http.status_code", resp.status_code)
152
+ return resp.json()
153
+
154
+ result = fetch_data("hello")
155
+ # Trace and fixture saved to ~/.agent-trace/runs/run_<id>/
156
+ ```
157
+
158
+ Replay offline — no API calls, no tokens:
159
+
160
+ ```python
161
+ from agent_trace import replay
162
+
163
+ with replay("run_<id>") as ctx:
164
+ result = fetch_data("hello") # served from fixture, zero network
165
+ print(result) # identical to the original run
166
+ ```
167
+
168
+ > To store the input for later retrieval in replay, call `ctx.fixture.set_metadata('input', query)` inside the recording context.
169
+
170
+ > **Sync and async clients:** Agent Observability intercepts `httpx.Client`, `httpx.AsyncClient`, and `requests.Session` — including the async client used by default in the OpenAI Python SDK v1.x and Anthropic SDK. The patch is installed at request-dispatch time, so it also covers clients constructed before recording/replay starts (e.g. a module-level `openai.AsyncOpenAI()` instance).
171
+
172
+ ---
173
+
174
+ ## Use in CI: replay at zero cost
175
+
176
+ Record once. Commit the fixture. Replay in every CI run at zero API cost:
177
+
178
+ ```python
179
+ # tests/test_agent.py
180
+ import pytest
181
+ from pathlib import Path
182
+ from agent_trace import replay
183
+
184
+ FIXTURE_PATH = Path("fixtures/my_agent_run.db")
185
+
186
+ @pytest.mark.skipif(
187
+ not FIXTURE_PATH.exists(),
188
+ reason="Run: python scripts/record_fixture.py to generate the fixture"
189
+ )
190
+ def test_agent_answer():
191
+ with replay(FIXTURE_PATH) as ctx:
192
+ from my_module import my_agent
193
+ result = my_agent("what is 2+2?")
194
+ assert "4" in result
195
+ ```
196
+
197
+ Set `AGENT_TRACE_NETWORK_GUARD=1` in CI. Any HTTP call not in the fixture raises `NetworkGuardError` immediately — catching regressions before they hit production.
198
+
199
+ ```bash
200
+ AGENT_TRACE_NETWORK_GUARD=1 uv run pytest tests/
201
+ ```
202
+
203
+ ---
204
+
205
+ ## How Agent Observability compares
206
+
207
+ Most observability tools for LLM agents are **observe-only** — they show you a trace of what happened, but reproducing a failure still requires re-running the full agent against live APIs.
208
+
209
+ | Capability | Agent Observability | LangSmith | Langfuse | Helicone | OpenLLMetry |
210
+ |---|---|---|---|---|---|
211
+ | Offline replay from local fixture | **Yes** | Partial ¹ | No | No | No |
212
+ | Works with any HTTP client | **Yes** | No | No | No | No |
213
+ | CI replay without API keys | **Yes** | Partial ¹ | No | No | No |
214
+ | Deterministic span timing in replay | **Yes** | No | No | No | No |
215
+ | Captures raw HTTP request/response bytes | **Yes** | No | No | Yes | No |
216
+ | Span-level tracing | Yes | Yes | Yes | Yes | Yes |
217
+ | OTLP export (Jaeger, Grafana Tempo) | Yes | No | Yes | No | Yes |
218
+ | Open-source core | Yes | No | Yes | No | Yes |
219
+ | Local-only, no server required | Yes | No | Self-host | No | Self-host |
220
+
221
+ ¹ LangSmith has `LANGSMITH_TEST_CACHE` / VCR cassettes (`langsmith[vcr]`) for Python + LangChain only. It captures HTTP to `api.openai.com` but not arbitrary HTTP clients, does not record full wire-level bytes, and requires a LangSmith account.
222
+
223
+ **Choose LangSmith** if your team is on LangChain and needs dataset management, prompt versioning, and human feedback loops.
224
+
225
+ **Choose Langfuse** if you want a fully open-source, self-hostable observability stack with strong Postgres-backed storage.
226
+
227
+ **Choose OpenLLMetry** if your team already runs on OpenTelemetry and wants standard `gen_ai.*` spans without adding a new observability system.
228
+
229
+ **Agent Observability** is not a replacement for dashboards and eval pipelines. It solves the specific upstream problem: reproducing a specific failed run without any LLM API cost, for any agent built on any Python HTTP client.
230
+
231
+ ---
232
+
233
+ ## Try it with Docker
234
+
235
+ Agent Observability emits OTLP spans. Run a local observability stack to browse trace trees:
236
+
237
+ ```bash
238
+ git clone https://github.com/RudrenduPaul/agent-observability
239
+ cd agent-observability
240
+ docker compose up -d
241
+ ```
242
+
243
+ Starts three services (all optional):
244
+
245
+ - **Jaeger** (`http://localhost:16686`) — OTLP span ingestion and trace UI
246
+ - **Grafana** (`http://localhost:3000`) — dashboards and alerts
247
+ - **Tempo** (port 3200) — long-term trace storage backend
248
+
249
+ Then point your exporter at the collector:
250
+
251
+ ```python
252
+ from agent_trace.exporters.otlp import OTLPExporter
253
+
254
+ # 4317 = OTLP gRPC ingestion endpoint
255
+ exporter = OTLPExporter(endpoint="http://localhost:4317")
256
+ exporter.export(trace)
257
+ ```
258
+
259
+ ---
260
+
261
+ ## Known limitations
262
+
263
+ Agent Observability's capture model is HTTP-interceptor-based (plus
264
+ instrumented framework callbacks for the integrations under
265
+ `src/agent_trace/integrations/`) and process-local. That model has real
266
+ edges — stated explicitly here so they're clear before you hit one, not
267
+ after:
268
+
269
+ - **Process-local only.** Recording/replay happens inside the Python
270
+ process you import `agent_trace` into (`httpx.Client(transport=
271
+ RecordingTransport(...))`, `session.mount(..., RecordingAdapter(...))`,
272
+ or `ReplayEngine.replay()`'s monkeypatches — see
273
+ `src/agent_trace/interceptor/`). It cannot observe or replay calls made
274
+ by a third-party **hosted** service you don't run or deploy yourself
275
+ (e.g. a vendor's own hosted chat assistant) — only your own process's
276
+ outbound calls.
277
+
278
+ - **gRPC coverage is partial.** `src/agent_trace/interceptor/grpc_hook.py`
279
+ patches `grpc.secure_channel`/`grpc.insecure_channel` (and the `grpc.aio`
280
+ equivalents) to capture Gemini/Vertex AI traffic that bypasses `httpx`
281
+ entirely — unary-unary calls (e.g. `GenerateContent`) and sync
282
+ unary-stream calls (e.g. `StreamGenerateContent`) are fully recorded and
283
+ replayed. Client-streaming and bidirectional-streaming gRPC calls, and
284
+ any `grpc.aio` streaming call, are **not** captured — those go straight
285
+ to the live network unintercepted, both during recording and (if
286
+ attempted) replay.
287
+
288
+ - **Capture starts once a request object exists.** `RecordingTransport.
289
+ handle_request`/`AsyncRecordingTransport.handle_async_request`
290
+ (`httpx_hook.py`) and `RecordingAdapter.send`
291
+ (`requests_patch.py`) only run once a fully-constructed
292
+ `httpx.Request`/`PreparedRequest` reaches them. Any exception raised
293
+ *before* that — while an SDK is serializing a tool schema, building
294
+ headers, or otherwise assembling the call, or even earlier, during plain
295
+ Python object construction (e.g. `TypeError` from `abc.ABCMeta` when
296
+ instantiating an abstract class incorrectly) — happens entirely upstream
297
+ of the interceptor's capture surface and produces zero fixture rows.
298
+ A wired-in framework integration's own error callback (e.g.
299
+ `LangGraphTracer.on_llm_error`) *does* still capture such pre-HTTP
300
+ exceptions when they propagate through that framework's own
301
+ `try`/`except` — so "invisible to the interceptor" is not the same as
302
+ "invisible everywhere": it depends on whether a framework integration is
303
+ wired in for the exception to pass through.
304
+
305
+ - **No visibility into a framework's own print/display code.** Exceptions
306
+ raised inside local logging/printing/display machinery — e.g. `rich`
307
+ Console output, IPython/Jupyter display hooks, triggered by a framework's
308
+ own `verbose=True` logging — have zero HTTP traffic and zero framework
309
+ callback surface. No existing or planned capture mechanism (HTTP
310
+ interceptor, MCP stdio-transport hook, or any framework integration)
311
+ observes this category of failure.
312
+
313
+ ---
314
+
315
+ ## Security
316
+
317
+ - **Supply chain:** SLSA Level 2 via GitHub Actions provenance. All releases signed with Sigstore. SBOM attached to every GitHub Release.
318
+ - **Vulnerability scanning:** Dependabot keeps all GitHub Actions and Python dependencies current. Secret scanning auto-enables when the repo goes public.
319
+ - **Fixture safety:** Fixture files at `~/.agent-trace/runs/` contain full HTTP request and response bodies, including API keys and prompt contents. Add `.agent-trace/` and `*.db` to your `.gitignore`. Never commit a fixture generated against a production API key.
320
+ - **Disclosure:** [SECURITY.md](SECURITY.md) — report vulnerabilities to `agent.obs.oss.security@gmail.com` with a 48-hour response SLA.
321
+
322
+ ---
323
+
324
+ ## Contributing
325
+
326
+ - Read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a PR
327
+ - Good first issues are labeled in [GitHub Issues](https://github.com/RudrenduPaul/agent-observability/issues)
328
+ - Replay engine (`src/agent_trace/_replay/`) requires 80% test coverage — correctness-critical
329
+ - Interceptor (`src/agent_trace/interceptor/`) requires 80% test coverage
330
+ - GitHub Discussions for design questions and ideas
331
+
332
+ Apache 2.0. Contributions welcome.
333
+
334
+ ---
335
+
336
+ *Built by Rudrendu Paul*
@@ -0,0 +1,51 @@
1
+ agent_trace/__init__.py,sha256=XqBgLuRLD4_VGjvqTkpu3JJVgRsrWUTa7HmSlvst764,48332
2
+ agent_trace/_cli.py,sha256=xO1SRHLuHHy5wsFb2CNE9BjGgWEIQjmL3dPEjhsXdJA,51197
3
+ agent_trace/_inspect.py,sha256=ucV23BWf0jt3ytJBn41YrouRNBS9Hs8zSpEuICFBUFg,85331
4
+ agent_trace/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ agent_trace/_replay/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
6
+ agent_trace/_replay/engine.py,sha256=WPpUdSOJq-hgyDVXqJU51acVgklBgNI-KuZwbEqptvA,10612
7
+ agent_trace/_replay/fixture.py,sha256=kH74CgOAz8kWmqtgnA4hYgghqit4BOYJFqwecSkdUBg,36534
8
+ agent_trace/core/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
9
+ agent_trace/core/clock.py,sha256=0uSrV9Nl-A-IMTV6wM5cWfpWcm7eCYl3YH5woHGQwss,2580
10
+ agent_trace/core/exceptions.py,sha256=oviNZLK8JimvF-rcE-m4iwMhnBxIrLNYTuEGi2l36L0,2073
11
+ agent_trace/core/span.py,sha256=js0Upe0NII6xR_Ty5jNMxQ8WOMCcoqedEERN6Dm6d4M,9888
12
+ agent_trace/core/trace.py,sha256=FtBjtWUu71UqlZFeZyS4EWBq0kkURzHkRiQi8SW-ZG4,3462
13
+ agent_trace/exporters/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
14
+ agent_trace/exporters/file.py,sha256=t0pOgS2U-Ik84sCn_ZXtwA-Rfji3Rt051V2jGoqp8Xk,2320
15
+ agent_trace/exporters/otlp.py,sha256=9VKs1b7atFenClifKI2QpLv3tmVZXZHyhRIg2LUGDGo,7239
16
+ agent_trace/exporters/remote_fixture.py,sha256=DcdiP-a8ZSCwCS5VE9lhcW_AED1BN7zA4RndpDmUAWk,11779
17
+ agent_trace/exporters/stdout.py,sha256=0u2lWfUPqS3zQt6s0ZTa9s1N3taKGOMK4EqXajaBveg,9995
18
+ agent_trace/integrations/__init__.py,sha256=1drlHzHI_e72SVFrLVARrCzKyOK7-c7J6vszNB6YhW8,2009
19
+ agent_trace/integrations/agno.py,sha256=jLZ1r6h547YshWLLMtbaHPfTP_BPRXQCy5JVE4yQccY,19284
20
+ agent_trace/integrations/autogen.py,sha256=Htgm5NcMXSdgpBjtK8khJgwS5u_j8yWMkd5VKbRFZZE,25516
21
+ agent_trace/integrations/crewai.py,sha256=F1X4rgAY1bbZDcCm4m7y4ysBSWXNe6M-52LidyOHTcE,22864
22
+ agent_trace/integrations/google_genai.py,sha256=JVxP1I0u6eAPQisv-iohhw0d85tJPe2annq-XUjR4R4,29009
23
+ agent_trace/integrations/haystack.py,sha256=qncmlmJMNRu89u34Hbbb9tLufmcO25MDlIIg4MbQi0o,10770
24
+ agent_trace/integrations/langchain_core.py,sha256=IvAbZqyzUp2lqo4cnv4lpxV6QEEze2LN4Y0DI-bq_tU,13681
25
+ agent_trace/integrations/langgraph.py,sha256=qZv86x791nD8DbJbh7fIzEAcIFgPstX7kCQElcuBWSw,92339
26
+ agent_trace/integrations/langgraph_checkpoint.py,sha256=VfgLtLWbtPrHtG-RvUJkE_gwYJYMzCnJsAqB4rIpPyw,29897
27
+ agent_trace/integrations/langgraph_state_diff.py,sha256=Qw7a1RMrYRGbPzsOFYQYcVMkaqCny3oB2oi4v_9FSb0,14150
28
+ agent_trace/integrations/langgraph_stream_debug.py,sha256=F74SmLViU9Lc3y2gCJW6hNiaNTw2qTJUw2a_jLf-oCk,7961
29
+ agent_trace/integrations/llama_index.py,sha256=XHwkKVRU9O-f2e6pBc5TieXe3nLF7B3zCAejJDOpDd8,19471
30
+ agent_trace/integrations/mcp.py,sha256=ArKlLdIngCnojVVKxqAc-S_4bT8SiOti1jhYHa3KYwA,10321
31
+ agent_trace/integrations/openai_agents.py,sha256=ken39n6ZbB4SrJ9QWHFtInW1hOJDTJ2PKCHKuj4eB98,33739
32
+ agent_trace/integrations/pydantic_ai.py,sha256=lT728_vu1xyqeiDDc3aulqmDWgZYpvqJ7VkipC1tCFA,19323
33
+ agent_trace/integrations/streaming.py,sha256=4rYjVzQIHfzRYL1UOVIwOqiKJOxQM_IZ_Av_1Ajd5GU,7928
34
+ agent_trace/interceptor/__init__.py,sha256=m-zmVCBhG2Va5Q4AEXfsbJmCD-SdBH_WtqUnZlmfHs8,2055
35
+ agent_trace/interceptor/aiohttp_hook.py,sha256=EaxRIItef_pjBYkNThb5Ej0EuTI1wubzBQQynjruNVQ,6062
36
+ agent_trace/interceptor/botocore_hook.py,sha256=g5YUsw3cYtxlwSJA6iVQOTO72WtXXGZYQCU62GwAg1M,8407
37
+ agent_trace/interceptor/grpc_hook.py,sha256=tCok_ISB8mI1Mj8yHCSCFFSksUcRR7wEAITDvQcRqjg,25305
38
+ agent_trace/interceptor/httpx_hook.py,sha256=KTXMw5kTsNr5ObxL-j_yy6W0FBo_017u92DEbDsiq1g,35414
39
+ agent_trace/interceptor/logging_hook.py,sha256=n4ebt8R2U6nmhEHJWllPfb1HRMR1IQwNd-ibMQQTtP8,5075
40
+ agent_trace/interceptor/requests_patch.py,sha256=ilwhGimYtpPfPlQkSpjMySSwr5CZ1AW_cRHVSm68fj0,6169
41
+ agent_trace/interceptor/sse.py,sha256=S9DssSQNX80u206VjEa3iicT3HzpxemOvz12ISHAj0M,6867
42
+ agent_trace/interceptor/stdio_hook.py,sha256=IePt0XiGTtc6EXqiC2c9tZVkhbsQfi2QLdgbfypZqOg,8398
43
+ agent_trace/interceptor/warnings_hook.py,sha256=O4EV2G79hvTqyAlpFwDy0q_pKnYtEFH01_dmEsfABvY,4933
44
+ agent_trace/interceptor/websocket_hook.py,sha256=sn14lHvAzUJk15TyQ0_dGZ69-nPKSzUH6W__qlKyi-0,12061
45
+ agent_trace/plugins/__init__.py,sha256=Ow_N-ePJFYnebkK-d6Sn7NXXMudYYDfxV0BquZUkF6w,1071
46
+ agent_trace/plugins/base.py,sha256=kyPEW9i0IT3qf_SU1vUtauC7vm8_-dHgmHPEmdHfSlo,3058
47
+ agent_observability_trace_cli-0.1.2.dist-info/METADATA,sha256=NmqdCYHLswj7VYKR58xMKczq1Mv74usGfXY0RdHvhSo,15185
48
+ agent_observability_trace_cli-0.1.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
49
+ agent_observability_trace_cli-0.1.2.dist-info/entry_points.txt,sha256=2q3N93Sxod7CqTGs2RbK9vGoJCKdHd9We_J_sGUf_7o,54
50
+ agent_observability_trace_cli-0.1.2.dist-info/licenses/LICENSE,sha256=YhpQyb5U3IQzuzBTxUh2GQs1ovqaWEMdzll-qBbtgzQ,11010
51
+ agent_observability_trace_cli-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ agent-trace = agent_trace._cli:main
@@ -0,0 +1,198 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of discussing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and incorporated
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a
80
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
81
+ or a Contribution incorporated within the Work constitutes direct
82
+ or contributory patent infringement, then any patent licenses
83
+ granted to You under this License for that Work shall terminate
84
+ as of the date such litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or as an addendum to
115
+ the NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the
117
+ License.
118
+
119
+ You may add Your own license statement for Your modifications and
120
+ may provide additional grant of rights to use, copy, modify, merge,
121
+ publish, distribute, sublicense, and/or sell copies of the
122
+ Contribution, either on an unchanged basis, or on the basis of
123
+ derivatives of it, solely to the extent these changes are necessary
124
+ to conform to other license requirements applicable to those
125
+ derivatives.
126
+
127
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
128
+ any Contribution intentionally submitted for inclusion in the Work
129
+ by You to the Licensor shall be under the terms and conditions of
130
+ this License, without any additional terms or conditions.
131
+ Notwithstanding the above, nothing herein shall supersede or modify
132
+ the terms of any separate license agreement you may have executed
133
+ with Licensor regarding such Contributions.
134
+
135
+ 6. Trademarks. This License does not grant permission to use the trade
136
+ names, trademarks, service marks, or product names of the Licensor,
137
+ except as required for reasonable and customary use in describing the
138
+ origin of the Work and reproducing the content of the NOTICE file.
139
+
140
+ 7. Disclaimer of Warranty. Unless required by applicable law or
141
+ agreed to in writing, Licensor provides the Work (and each
142
+ Contributor provides its Contributions) on an "AS IS" BASIS,
143
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
144
+ implied, including, without limitation, any warranties or conditions
145
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
146
+ PARTICULAR PURPOSE. You are solely responsible for determining the
147
+ appropriateness of using or reproducing the Work and assume any
148
+ risks associated with Your exercise of permissions under this License.
149
+
150
+ 8. Limitation of Liability. In no event and under no legal theory,
151
+ whether in tort (including negligence), contract, or otherwise,
152
+ unless required by applicable law (such as deliberate and grossly
153
+ negligent acts) or agreed to in writing, shall any Contributor be
154
+ liable to You for damages, including any direct, indirect, special,
155
+ incidental, or exemplary damages of any character arising as a
156
+ result of this License or out of the use or inability to use the
157
+ Work (including but not limited to damages for loss of goodwill,
158
+ work stoppage, computer failure or malfunction, or all other
159
+ commercial damages or losses), even if such Contributor has been
160
+ advised of the possibility of such damages.
161
+
162
+ 9. Accepting Warranty or Additional Liability. While redistributing
163
+ the Work or Derivative Works thereof, You may choose to offer,
164
+ and charge a fee for, acceptance of support, warranty, indemnity,
165
+ or other liability obligations and/or rights consistent with this
166
+ License. However, in accepting such obligations, You may act only
167
+ on Your own behalf and on Your sole responsibility, not on behalf
168
+ of any other Contributor, and only if You agree to indemnify,
169
+ defend, and hold each Contributor harmless for any liability
170
+ incurred by, or claims asserted against, such Contributor by reason
171
+ of your accepting any such warranty or additional liability.
172
+
173
+ END OF TERMS AND CONDITIONS
174
+
175
+ APPENDIX: How to apply the Apache License to your work.
176
+
177
+ To apply the Apache License to your work, attach the following
178
+ boilerplate notice, with the fields enclosed by brackets "[]"
179
+ replaced with your own identifying information. (Don't include
180
+ the brackets!) The text should be enclosed in the appropriate
181
+ comment syntax for the file format in question. It is also
182
+ recommended that a file or directory name and a description of the
183
+ purpose of the file be included on the same "PRINT" or "on the
184
+ first page" of each appropriate file.
185
+
186
+ Copyright 2026 Rudrendu Paul and Sourav Nandy
187
+
188
+ Licensed under the Apache License, Version 2.0 (the "License");
189
+ you may not use this file except in compliance with the License.
190
+ You may obtain a copy of the License at
191
+
192
+ http://www.apache.org/licenses/LICENSE-2.0
193
+
194
+ Unless required by applicable law or agreed to in writing, software
195
+ distributed under the License is distributed on an "AS IS" BASIS,
196
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197
+ See the License for the specific language governing permissions and
198
+ limitations under the License.