Skip to content

Building AI agents, atomically

Prepare v2.15.0 release (#325)

Kenny Vaneetvelde9c9e334d8065
diff --git a/.claude/.codebase-info/.map-state.json b/.claude/.codebase-info/.map-state.json
index 461aa09..b020de2 100644
--- a/.claude/.codebase-info/.map-state.json
+++ b/.claude/.codebase-info/.map-state.json
@@ -3,7 +3,7 @@
"tool": "codebase-mapper",
"version": "2.15.10",
"mappedAt": "2026-10-21",
- "gitCommit": "d1c1bc8a910d3a80a98d08d3a35e49d748611cea",
+ "gitCommit": "b8506eb910c0b1c07a5e8dd21e0ce7397154545f",
"documents": [
"architecture.md",
"coding-style.md",
@@ -17,7 +17,7 @@
"tech-landscape.md"
],
"hashes": {
- "INDEX.md": "8fec73a52b4a1a7b5c9f2ab7de1e02f273aa49aeb73dc5e29a4d5e7049b2c3ec",
+ "INDEX.md": "91bb80710a6b08c0bb9be27178d9fbf52f1d32a3cdea58b7bdb07ec295e60b68",
"architecture.md": "0ff15b04928495b48cdcf40845b5bf9e3bb548c602b734321c4b10f630d83150",
"coding-style.md": "b63e8dff06d16a2d882f02624c62f490291317aec8b3032f6d79b3ee035e8567",
"communication.md": "0a61b6090f5e67341ad605517111270bdd04caede037e70ec6565de8dcdf5f28",
diff --git a/.claude/.codebase-info/INDEX.md b/.claude/.codebase-info/INDEX.md
index 70a6c33..1c1d1b7 100644
--- a/.claude/.codebase-info/INDEX.md
+++ b/.claude/.codebase-info/INDEX.md
@@ -8,7 +8,7 @@ composable, schema-driven building blocks (built on Instructor + Pydantic). This
**Stack:** Python ≥3.12 · Instructor · Pydantic v2 · LiteLLM · MCP · Textual · uv + Hatchling · Pyright · `VideoURL` multimodal content · optional OpenTelemetry tracing (GenAI attributes; Phoenix/OpenInference optional)
**Shape:** Monorepo — `atomic-agents/` (core lib) · `atomic-assembler/` (CLI) · `atomic-forge/` (tools) · `atomic-examples/` (examples)
-**Package:** `atomic-agents` v2.14.0 · core import package is `atomic_agents`
+**Package:** `atomic-agents` v2.15.0 · core import package is `atomic_agents`
## Documents
diff --git a/.release/2.15.0.md b/.release/2.15.0.md
new file mode 100644
index 0000000..a65801a
--- /dev/null
+++ b/.release/2.15.0.md
@@ -0,0 +1,30 @@
+## Features
+
+- Tracing now runs on `opentelemetry-api` alone and emits OpenTelemetry GenAI semantic-convention spans, so any OTLP backend reads them: a plain collector, Grafana Tempo, Sentry, Datadog, Honeycomb, PostHog, Jaeger, Arize Phoenix, Langfuse. Phoenix and the OpenInference packages are no longer required.
+- One `chat {model}` CLIENT span per Instructor attempt, driven by Instructor hooks: per-attempt and total usage (input, output, cached and reasoning tokens) for both chat-completion and Responses shapes, `gen_ai.response.model`, attempt count, validation errors as events, `error.type` on failures. Totals also land on the agent span.
+- `AgentConfig(name=...)` gives agents a stable span name (`invoke_agent {name}`); `using_conversation(conversation_id)` sets `gen_ai.conversation.id` on everything inside the block.
+- `TracingConfig(hide_inputs, hide_outputs, max_attribute_length, openinference_attributes, llm_spans)` replaces ad-hoc keyword options, with environment equivalents `ATOMIC_AGENTS_TRACE_HIDE_INPUTS`, `ATOMIC_AGENTS_TRACE_HIDE_OUTPUTS`, `ATOMIC_AGENTS_TRACE_MAX_ATTRIBUTE_LENGTH` and `ATOMIC_AGENTS_TRACE_LLM_SPANS`. The `OPENINFERENCE_HIDE_*` variables still work as a fallback.
+- Hiding is applied before serialization and wins over truncation. Under `hide_outputs` every exception is reduced to `<Type>: <N> attempts (__REDACTED__)` and traceback frames carry no source lines, so retry exhaustion cannot leak model output.
+- Cancellation (`CancelledError`, `GeneratorExit`) is recorded as `atomic_agents.cancelled=true` with status UNSET on agent and tool spans, never as an error.
+- A second `instrument()` call with different explicit values replaces the installed provider or config in place with a WARNING; `None` keeps the installed value. `AtomicAgent.clear_hooks()` removes only the agent's own handlers.
+
+## Packaging
+
+- `atomic-agents[observability]` now installs only `opentelemetry-api`.
+- New `atomic-agents[phoenix]` extra adds `openinference-instrumentation` and `openinference-semantic-conventions`. OpenInference attributes switch on automatically when those packages are importable, or explicitly with `TracingConfig(openinference_attributes=True)`.
+- Phoenix users on `register(auto_instrument=True)` keep working after switching to the `phoenix` extra. When a provider instrumentor (OpenAI, Anthropic) also emits LLM spans, set `ATOMIC_AGENTS_TRACE_LLM_SPANS=false` to avoid duplicates.
+
+## Docs
+
+- `docs/guides/observability.md` rewritten OTLP-first with per-backend recipes (recipes nobody has run against a live backend are marked as such), a privacy section and the LLM attempt span contract.
+- README gained an Observability section; the `phoenix-tracing` example now installs the `phoenix` extra.
+
+## Verification
+
+- Merged-tree gate: 806 core tests passed, about 200 observability tests including 24 real-Instructor cases over `httpx.MockTransport` across TOOLS, JSON, JSON_SCHEMA and RESPONSES_TOOLS modes, pyright 0 errors, Black and Flake8 clean, Sphinx builds.
+- CI fresh-install job installs the wheel with `[observability]` plus `opentelemetry-sdk`, proves `openinference` is absent, runs a real Instructor client over a mock transport and asserts the GenAI keys, usage totals and `gen_ai.conversation.id`, and the absence of every OpenInference key. The lowest-versions job compiles both extras.
+- Reviewed and probed by an external consumer (Sentry and Grafana Tempo targets, no OpenInference installed): 59 of 60 checks passed on the review head, the remaining item fixed before merge.
+
+Tests used synthetic inputs and local or mock transports. No live model or remote tracing-backend calls.
+
+Full changelog: https://github.com/Eigenwise/atomic-agents/compare/v2.14.0...v2.15.0
diff --git a/pyproject.toml b/pyproject.toml
index e720bc5..fa9a959 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "atomic-agents"
-version = "2.14.0"
+version = "2.15.0"
description = "A versatile framework for creating and managing intelligent agents."
readme = "README.md"
license = "MIT"
diff --git a/uv.lock b/uv.lock
index 8ced42d..bfd13e4 100644
--- a/uv.lock
+++ b/uv.lock
@@ -267,7 +267,7 @@ wheels = [
[[package]]
name = "atomic-agents"
-version = "2.14.0"
+version = "2.15.0"
source = { editable = "." }
dependencies = [
{ name = "gitpython" },