Files
agent-framework/dotnet/tests
T
copilot-swe-agent[bot] ce242ebeb2 fix: propagate EnableSensitiveData to auto-wired inner OpenTelemetryChatClient
When _autoWireChatClient=true and the caller sets EnableSensitiveData=true on
the outer OpenTelemetryAgent, the auto-wired inner OpenTelemetryChatClient now
also has EnableSensitiveData propagated, so the inner chat span correctly
captures message content (gen_ai.input.messages / gen_ai.output.messages).

Red test added first to reproduce the bug, then the fix applied (green).

Fixes #5873

Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/fda69dd4-9576-4f3f-b954-514321652ea9

Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
ce242ebeb2 · 2026-05-26 15:44:05 +00:00
History
..