{"id":50332196,"url":"https://github.com/ericchansen/foundry-agent-tracing-demo","last_synced_at":"2026-05-29T10:30:47.838Z","repository":{"id":357923312,"uuid":"1238189191","full_name":"ericchansen/foundry-agent-tracing-demo","owner":"ericchansen","description":"Demo: Azure AI Foundry agent with tracing in West Europe (classic resource)","archived":false,"fork":false,"pushed_at":"2026-05-14T21:56:45.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T22:31:18.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericchansen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T22:37:53.000Z","updated_at":"2026-05-14T21:56:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ericchansen/foundry-agent-tracing-demo","commit_stats":null,"previous_names":["ericchansen/foundry-agent-tracing-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ericchansen/foundry-agent-tracing-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchansen%2Ffoundry-agent-tracing-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchansen%2Ffoundry-agent-tracing-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchansen%2Ffoundry-agent-tracing-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchansen%2Ffoundry-agent-tracing-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericchansen","download_url":"https://codeload.github.com/ericchansen/foundry-agent-tracing-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchansen%2Ffoundry-agent-tracing-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33648529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-29T10:30:47.015Z","updated_at":"2026-05-29T10:30:47.834Z","avatar_url":"https://github.com/ericchansen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foundry Agent Tracing Demo — West Europe\n\nShows how to get agent traces working on a **classic Azure OpenAI resource** in **West Europe** with **DataZoneStandard** deployment.\n\n\u003e **Why this exists:** The Foundry portal doesn't have a Tracing page for classic Azure OpenAI resources. The Monitoring section only shows usage metrics. This repo shows how to route traces to Log Analytics instead, where you can query them with KQL.\n\n## Quick start\n\n### Option A: Azure Portal (no CLI needed)\n\n1. **Create a Log Analytics workspace** — search \"Log Analytics workspaces\" in the Azure Portal \u003e Create \u003e pick your resource group and **West Europe**.\n\n2. **Add diagnostic settings** — open your Azure OpenAI resource \u003e **Monitoring \u003e Diagnostic settings** \u003e Add diagnostic setting. Enable these categories and send them to your Log Analytics workspace:\n   - `Trace`\n   - `RequestResponse`\n\n3. **Run your agent**, wait 2–5 minutes, then go to your Log Analytics workspace \u003e **Logs** and run:\n\n   ```kql\n   AzureDiagnostics\n   | where Category == \"Trace\" or Category == \"RequestResponse\"\n   | where TimeGenerated \u003e ago(30m)\n   | project TimeGenerated, Category, OperationName, ResultType, properties_s\n   | order by TimeGenerated desc\n   ```\n\n### Option B: CLI + Python demo\n\n```bash\npip install -r requirements.txt\ncp .env.example .env\n# Fill in your values\npython demo.py\n```\n\nThis creates a test agent, runs it, and queries Log Analytics to verify traces arrived. See [`infra/setup.sh`](infra/setup.sh) to provision everything from scratch via CLI.\n\n## Troubleshooting\n\n| Problem | Fix |\n|---|---|\n| No traces in Log Analytics | Check that [diagnostic settings](https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings) are configured with `Trace` and `RequestResponse` categories |\n| No Tracing page in Foundry portal | Expected for classic resources — use Log Analytics KQL instead |\n| Deployment fails with \"SKU not available\" | Use `DataZoneStandard`, not `Standard` — Standard doesn't exist in West Europe ([EU Data Zone boundary](https://learn.microsoft.com/en-us/legal/cognitive-services/openai/data-privacy)) |\n| Agent run fails with `server_error` / 0 tokens | gpt-5.4 doesn't support the Assistants API — use `gpt-4o` or `gpt-4.1` |\n| `401` on API calls | If `disableLocalAuth` is true on your resource, use Azure AD auth (`DefaultAzureCredential`) instead of API keys |\n| Traces don't appear immediately | Normal — there's a 2–5 minute ingestion delay |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericchansen%2Ffoundry-agent-tracing-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericchansen%2Ffoundry-agent-tracing-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericchansen%2Ffoundry-agent-tracing-demo/lists"}