Skip to content

Commit ea72ae9

Browse files
authored
Update opentelemetry-configuration.md
1 parent a414dce commit ea72ae9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/azure-monitor/app/opentelemetry-configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ from azure.identity import ManagedIdentityCredential
644644
from azure.monitor.opentelemetry import configure_azure_monitor
645645
from opentelemetry import trace
646646

647+
# Configure the Distro to authenticate with Azure Monitor using a managed identity credential.
647648
credential = ManagedIdentityCredential(client_id="<client_id>")
648649
configure_azure_monitor(
649650
connection_string="your-connection-string",
@@ -665,6 +666,7 @@ from azure.identity import ClientSecretCredential
665666
from azure.monitor.opentelemetry import configure_azure_monitor
666667
from opentelemetry import trace
667668

669+
# Configure the Distro to authenticate with Azure Monitor using a client secret credential.
668670
credential = ClientSecretCredential(
669671
tenant_id="<tenant_id",
670672
client_id="<client_id>",
@@ -675,7 +677,7 @@ configure_azure_monitor(
675677
credential=credential,
676678
)
677679

678-
with tracer.start_as_current_span("hello with aad client identity"):
680+
with tracer.start_as_current_span("hello with aad client secret identity"):
679681
print("Hello, World!")
680682

681683
```

0 commit comments

Comments
 (0)