Azure / Azure/azure-sdk-for-python

Token usage and genai calls not seen in ai foundary tracing for AI Agents

Aperta
#40,176 3 commenti 0 reazioni 1 assegnatario Rivendicata da @M-Hietala Vedi su GitHub
Client customer-reported Monitor - Exporter needs-team-attention question Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
202

Descrizione

I configured azure monitor open telemetry to an ai agent application and configured `AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED=true` in my environment variables but i still can't see the LLM calls in AI foundary tracing. While the same is much cleaner when I integrate the application insights with semantic kernel chatcompletion agent and setting `SEMANTICKERNEL_EXPERIMENTAL_GENAI_ENABLE_OTEL_DIAGNOSTICS_SENSITIVE=true`

Sample output with SK chatcompletion agent:

![Image](https://github.com/user-attachments/assets/ecf4faac-6272-4ed8-b426-79a965473631)

Sample output with AI agent

![Image](https://github.com/user-attachments/assets/a5b8a2dd-2dca-429c-8a36-f585c1a97eb9)

Keeping or removing `AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED=true` in .env file doesn't change the output.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.