You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2d7cd80
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ag2): reuse the provider setup() registered instead of registering again
setup() without tracer_provider called fi register() on every call, so
setup(planner) then setup(worker) put each agent on its own provider with
its own AG2SpanProcessor. The planner's processor never saw the worker's
invoke_agent span, kept the subtask rollup's promoted tokens, and the trace
counted the worker's spend twice (real AG2: 91/15 input/output tokens
against a UsageReport of 51/11).
setup() now remembers the provider it registered and reuses it on later
calls without tracer_provider until that provider is shut down. A later
config= still replaces the installed TraceConfig; a different project_name
is ignored with a warning. README and CHANGELOG updated.
approved: Nikhil 2026-10-03 blanket
Refs: TH-8236
0 commit comments