Skip to content

Commit 4da2382

Browse files
Merge pull request #5629 from santiagxf/santiagxf-patch-1
Update trace-application.md
2 parents 155bbb1 + dc0efc1 commit 4da2382

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-foundry/how-to/develop/trace-application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ When developing with the OpenAI SDK, you can instrument your code so traces are
8484
OpenAIInstrumentor().instrument()
8585
```
8686

87-
1. Get the connection string to the Azure Application Insights resource associated with your project:
87+
1. Get the connection string to the Azure Application Insights resource associated with your project. The following line uses the Azure AI Project client, which requires the use of Microsoft Entra ID for authentication:
8888

8989
```python
9090
from azure.ai.projects import AIProjectClient
9191
from azure.identity import DefaultAzureCredential
9292

93-
project_client = AIProjectClient.from_connection_string(
93+
project_client = AIProjectClient(
9494
credential=DefaultAzureCredential(),
9595
endpoint="https://<your-resource>.services.ai.azure.com/api/projects/<your-project>",
9696
)

0 commit comments

Comments
 (0)