File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
articles/azure-monitor/app Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -633,11 +633,12 @@ from azure.identity import ManagedIdentityCredential
633
633
# Import the `configure_azure_monitor()` function from the `azure.monitor.opentelemetry` package.
634
634
from azure .monitor .opentelemetry import configure_azure_monitor
635
635
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.
638
637
configure_azure_monitor (
638
+ connection_string = " your-connection-string" ,
639
639
credential = ManagedIdentityCredential (),
640
640
)
641
+
641
642
```
642
643
643
644
-- -
You can’t perform that action at this time.
0 commit comments