Skip to content

Commit 1857de1

Browse files
author
Liudmila Molkova
authored
Minor fixes in vanilla OTel tracing sample (#38194)
* Minor fixes in OTel tracing samples
1 parent 5c2ca05 commit 1857de1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sdk/ai/azure-ai-inference/samples/sample_chat_completions_with_azure_monitor_tracing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
`your-azure-region` is the Azure region where your model is deployed.
2323
2) AZURE_AI_CHAT_KEY - Your model key (a 32-character string). Keep it secret.
2424
3) APPLICATIONINSIGHTS_CONNECTION_STRING - Your Azure Monitor (Application Insights) connection string.
25-
4) AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED - Set to 'true' to enable content recording.
25+
4) AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED - Optional. Set to 'true'
26+
for detailed traces, including chat request and response messages.
2627
"""
2728

2829

sdk/ai/azure-ai-inference/samples/sample_chat_completions_with_tracing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This sample demonstrates how to use tracing with the Inference client library.
88
Azure AI Inference is instrumented with OpenTelemetry. In order to enable tracing
99
you need to configure OpenTelemetry to export traces to your observability backend.
10-
This sample shows how to capture the traces to a file.
10+
This sample shows how to print traces to stdout.
1111
1212
This sample assumes the AI model is hosted on a Serverless API or
1313
Managed Compute endpoint. For GitHub Models or Azure OpenAI endpoints,
@@ -23,6 +23,8 @@
2323
where `your-deployment-name` is your unique AI Model deployment name, and
2424
`your-azure-region` is the Azure region where your model is deployed.
2525
2) AZURE_AI_CHAT_KEY - Your model key (a 32-character string). Keep it secret.
26+
3) AZURE_TRACING_GEN_AI_CONTENT_RECORDING_ENABLED - Optional. Set to 'true'
27+
for detailed traces, including chat request and response messages.
2628
"""
2729

2830

0 commit comments

Comments
 (0)