From df733ce4b8eca40711e812d7c3c49048366509a3 Mon Sep 17 00:00:00 2001 From: Lin-ux-404 <99342293+Lin-ux-404@users.noreply.github.com> Date: Mon, 4 Aug 2025 17:03:37 +0200 Subject: [PATCH] Update trace-agents-sdk.md Updated documentation reference for connection string, replacing non-existent 'get_connection_string()' with 'get_application_insights_connection_string()' attribute. --- articles/ai-foundry/how-to/develop/trace-agents-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/ai-foundry/how-to/develop/trace-agents-sdk.md b/articles/ai-foundry/how-to/develop/trace-agents-sdk.md index adc69a0c57..1d4ea1ca32 100644 --- a/articles/ai-foundry/how-to/develop/trace-agents-sdk.md +++ b/articles/ai-foundry/how-to/develop/trace-agents-sdk.md @@ -71,7 +71,7 @@ Next, retrieve the connection string from the Application Insights resource conn ```python from azure.monitor.opentelemetry import configure_azure_monitor -connection_string = project_client.telemetry.get_connection_string() +connection_string = project_client.telemetry.get_application_insights_connection_string() if not connection_string: print("Application Insights is not enabled. Enable by going to Tracing in your Azure AI Foundry project.")