Skip to content

Commit f2cba89

Browse files
Merge pull request #282117 from AaronMaxwell/aaronmax-python-auth-update
Small code update for Python
2 parents bc12d40 + ab95721 commit f2cba89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,11 +633,12 @@ from azure.identity import ManagedIdentityCredential
633633
# Import the `configure_azure_monitor()` function from the `azure.monitor.opentelemetry` package.
634634
from azure.monitor.opentelemetry import configure_azure_monitor
635635

636-
# Configure OpenTelemetry to use Azure Monitor with a managed identity credential.
637-
# This will allow OpenTelemetry to authenticate to Azure Monitor without requiring you to provide a connection string.
636+
# Configure the Distro to authenticate with Azure Monitor using a managed identity credential.
638637
configure_azure_monitor(
638+
connection_string="your-connection-string",
639639
credential=ManagedIdentityCredential(),
640640
)
641+
641642
```
642643

643644
---

0 commit comments

Comments
 (0)