Skip to content

Commit

Permalink
Fix passing the connection string for Application Insights using apps…
Browse files Browse the repository at this point in the history
…ettings.json (#36519)
  • Loading branch information
ar1k authored Jan 30, 2024
1 parent 05545f1 commit e6d0607
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/core/diagnostics/observability-with-otel.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ Application Insights identifies which instance to use to store and process data
If you're using Azure App Service, this connection string is automatically passed to the application as an environment variable. For other services or when running locally, you need to pass it using the `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable or in `appsettings.json`. For running locally, it's easiest to add the value to `appsettings.json`:

```json
"APPLICATIONINSIGHTS_CONNECTION_STRING": "InstrumentationKey=12345678-abcd-abcd-abcd-12345678..."
"AzureMonitor": {
"ConnectionString": "InstrumentationKey=12345678-abcd-abcd-abcd-12345678..."
}
```

> [!Note]
Expand Down

0 comments on commit e6d0607

Please sign in to comment.