Skip to content

Commit a414dce

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ Azure Monitor OpenTelemetry Distro for Python support the credential classes pro
632632
- We recommend `DefaultAzureCredential` for local development.
633633
- We recommend `ManagedIdentityCredential` for system-assigned and user-assigned managed identities.
634634
- For system-assigned, use the default constructor without parameters.
635-
- For user-assigned, provide the client ID to the constructor.
635+
- For user-assigned, provide the `client_id` to the constructor.
636636
- We recommend `ClientSecretCredential` for service principals.
637637
- Provide the tenant ID, client ID, and client secret to the constructor.
638638

@@ -646,8 +646,8 @@ from opentelemetry import trace
646646

647647
credential = ManagedIdentityCredential(client_id="<client_id>")
648648
configure_azure_monitor(
649-
connection_string="your-connection-string",
650-
credential=credential,
649+
connection_string="your-connection-string",
650+
credential=credential,
651651
)
652652

653653
tracer = trace.get_tracer(__name__)
@@ -671,8 +671,8 @@ credential = ClientSecretCredential(
671671
client_secret="<client_secret>",
672672
)
673673
configure_azure_monitor(
674-
connection_string="your-connection-string",
675-
credential=credential,
674+
connection_string="your-connection-string",
675+
credential=credential,
676676
)
677677

678678
with tracer.start_as_current_span("hello with aad client identity"):

0 commit comments

Comments
 (0)