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.")