Azure / Azure/azure-sdk-for-python
azure-ai-agentserver-agentframework: _configure_otel_providers() hardcodes enable_sensitive_data=True, ignoring the documented ENABLE_SENSITIVE_DATA env var
- Vorherrschende Sprache
- Python
- Sterne
- 5.6k
- Forks
- 3.4k
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 213
Beschreibung
Describe the bug
AgentFrameworkAgent._configure_otel_providers() in azure/ai/agentserver/agentframework/_agent_framework.py unconditionally passes enable_sensitive_data=True to agent_framework.observability.configure_otel_providers():
```
# _agent_framework.py – current code
def _configure_otel_providers(self, exporters) -> bool:
from agent_framework.observability import configure_otel_providers
configure_otel_providers(
enable_sensitive_data=True, # ← hardcoded, no way to opt out
exporters=exporters,
)
return True
```
This means that whenever APPLICATIONINSIGHTS_CONNECTION_STRING is set, all LLM message content (system prompt, user messages, model completions, tool call arguments and results) is captured as OpenTelemetry span attributes and exported to Application Insights — regardless of what the developer has set for ENABLE_SENSITIVE_DATA.
Beitragsleitfaden
Rechercherichtung
Beginne mit dem Lesen von azure/ai/agentserver/agentframework/_agent_framework.py und dem Einstiegspunkt AgentFrameworkAgent._configure_otel_providers(), und verfolge dann, wie configure_otel_providers() die Einstellung für sensible Daten erhält. Überprüfe, dass ENABLE_SENSITIVE_DATA berücksichtigt wird, wenn APPLICATIONINSIGHTS_CONNECTION_STRING gesetzt ist, und dass sensible LLM-Inhalte nicht erfasst werden, wenn die Einstellung deaktiviert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- observability, security
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Ruhig
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 74/100