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
Chat span emitted even when MAF instrumentation is disabled #100
When using microsoft-opentelemetry distro with MAF (Microsoft Agent Framework) instrumentation disabled, a chat gpt-4.1 span is still being emitted. This span should not appear when MAF instrumentation is turned off.
Repro Steps
Use microsoft-opentelemetry distro
Disable MAF instrumentation
Invoke an agent
Observe that a chat span still shows up under the invoke_agent trace
Expected Behavior
No chat span should appear when MAF instrumentation is disabled.
Actual Behavior
A chat gpt-4.1 span (7.2s, 69 tokens) is emitted with full gen_ai attributes (input/output messages, token usage, cost, agent name/id). The span includes attributes like:
gen_ai.agent.name
gen_ai.agent.id
microsoft.gen_ai.cost.input
microsoft.gen_ai.cost.output
gen_ai.usage.input_tokens
gen_ai.usage.output_tokens
gen_ai.response.model: gpt-4.1
Screenshot
(See attached image showing the chat span with metadata appearing under invoke_agent trace even with MAF instrumentation disabled)
Activity
rads-1996 commentedon Apr 30, 2026
Ankit Singhal (@singankit) Can you share your application code? Can you also share your distro setup?
rads-1996 commentedon May 4, 2026
Ankit Singhal (@singankit) Reminder: Can you share your application code? Can you also share your distro setup?
github-actions commentedon May 29, 2026
Ankit Singhal (@singankit) we need more information before we can continue working on this issue.
Please reply within 14 days. If we do not hear back, this issue may be closed automatically.
Marked as needs-author-feedback on 2026-05-29.
github-actions commentedon Jun 6, 2026
Ankit Singhal (@singankit) friendly reminder: we are still waiting for your feedback.
If we do not hear back within 7 more days, this issue may be closed automatically.
github-actions commentedon Jun 13, 2026
Ankit Singhal (@singankit) we have not received the requested information within 14 days, so we are closing this issue for now.
If you still need help, please comment with the requested details and we can reopen it.