Skip to content

Commit 30479c4

Browse files
committed
fix(ag2): require fi-instrumentation-otel>=1.1.0
Published fi-instrumentation-otel 1.0.0 crashes in register() with opentelemetry-exporter-otlp-proto-http 1.45.0 (otel.py:289 AttributeError: 'HTTPSpanExporter' object has no attribute '_headers'). Evidence, this branch's suite with PYTHONPATH=python/frameworks/ag2: python/tests (no in-repo fi_instrumentation) and ag2 1.1.2: - --with fi-instrumentation-otel==1.0.0: 5 failed, 58 passed (3x the _headers AttributeError, 1x register() got an unexpected keyword argument 'timeout') - --with fi-instrumentation-otel==1.1.0: 63 passed Floor raised in pyproject.toml with the reason; README and CHANGELOG note it. approved: Nikhil 2026-10-03 blanket Refs: TH-8236
1 parent 00802f3 commit 30479c4

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎python/frameworks/ag2/CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
same trace. `aggregation` and `compaction` usage keeps its promoted tokens:
1717
AG2 calls the model outside the middleware for those, so the usage span is
1818
the only copy. The trace total now equals AG2's `UsageReport` total.
19+
- Requires `fi-instrumentation-otel>=1.1.0` (was `>=1.0.0`): published 1.0.0
20+
crashes in `register()` with `opentelemetry-exporter-otlp-proto-http` 1.45.0
21+
(`AttributeError: 'HTTPSpanExporter' object has no attribute '_headers'`).

‎python/frameworks/ag2/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ AG2 1.x is the PyPI package `ag2`, imported as `ag2`. It is not Microsoft AutoGe
1313
| `autogen-agentchat` | `autogen_agentchat` | `traceAI-autogen` |
1414

1515
Requires `ag2>=1.0.0` (the first stable 1.x that ships `TelemetryMiddleware`;
16-
tested on 1.0.0, 1.0.3 and 1.1.2) and Python 3.10 to 3.13. `ag2` is
16+
tested on 1.0.0, 1.0.3 and 1.1.2), `fi-instrumentation-otel>=1.1.0` and
17+
Python 3.10 to 3.13. `ag2` is
1718
Apache-2.0 and is a dependency only; nothing from it is vendored.
1819

1920
## What it does

‎python/frameworks/ag2/pyproject.toml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ python = ">=3.10,<3.14"
1515
# agent_name, provider_name, model_name, span_attributes) and
1616
# Agent.add_middleware ship from ag2 1.0.0 (first stable 1.x).
1717
ag2 = ">=1.0.0"
18-
# GEN_AI_SPAN_KIND / GEN_AI_OPERATION_NAME first appear in fi_types at 1.0.0.
19-
fi-instrumentation-otel = ">=1.0.0"
18+
# GEN_AI_SPAN_KIND / GEN_AI_OPERATION_NAME first appear in fi_types at 1.0.0,
19+
# but published 1.0.0 crashes in register() with
20+
# opentelemetry-exporter-otlp-proto-http 1.45.0 (otel.py:289 AttributeError:
21+
# 'HTTPSpanExporter' object has no attribute '_headers'). 1.1.0 is the first
22+
# release this package's suite passes on.
23+
fi-instrumentation-otel = ">=1.1.0"
2024

2125
[tool.poetry.group.dev.dependencies]
2226
pytest = ">=8.0.0"

0 commit comments

Comments
 (0)