Observed since 20 Oct, 23:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Execution traces for agent behavior - OpenTelemetry-style observability for AI agent workflows
Instrumentation SDK for AI agents — turn agent behavior into OpenTelemetry GenAI spans and validated, redacted execution records. Part of agentwatch.
pip install agentsec-agentwatch
Optional extras:
pip install "agentsec-agentwatch[langgraph]" # LangGraph adapter
pip install "agentsec-agentwatch[otlp]" # OTLP export
pip install "agentsec-agentwatch[signing]" # cryptographic signing helpers
Requires Python 3.10+.
Trace a plain Python agent — no framework required:
from agentwatch.raw import trace_agent
from agentwatch.spans import plan_span, execute_tool_span
@trace_agent("support-bot", agent_version="v0.1.0", model="gpt-4o", provider="openai")
def answer(request: str) -> str:
with plan_span("decide next action"):
...
with execute_tool_span("search", arguments={"q": request}):
...
return "done"
Or drive the run context explicitly:
from agentwatch.config import default_config
from agentwatch.tracer import configure_tracing
from agentwatch.context import RunContext
from agentwatch.instrument import invoke_agent
configure_tracing(default_config()) # once at startup
with invoke_agent(RunContext(agent_name="request-triage")):
...
LangGraph:
from agentwatch.langgraph import trace_graph
graph = trace_graph(compiled_graph, agent_name="planner")
Records are redacted by default. Four privacy modes are available per span/tool call:
| Mode | What is stored |
|---|---|
truncated (default) | Content-safe truncated values |
metadata-only | Names, timings, and counts; no content |
hashed | One-way digests of content |
full | Raw content (opt-in) |
The same package installs the CLI:
agentsec-agentwatch init # install Claude Code hooks + start the local daemon
agentsec-agentwatch sessions # list recorded sessions
agentsec-agentwatch replay <id> # reconstruct a session's action timeline
agentsec-agentwatch verify-store # verify the hash chain
Records are written to a local-first, hash-chained JSONL store; OTLP export is opt-in and gated on a redaction self-test.
Apache-2.0 — see LICENSE.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.3.0 | 12 Oct 2026 | 15 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 23:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1b405f31df874056f277c8c09ddafa6cab5694edb1ea388bb9619fa5e15061d2