@@ -21,7 +21,7 @@ A connection string in Application Insights defines the target location for send
21
21
22
22
Use one of the following three ways to configure the connection string:
23
23
24
- - Add ` UseAzureMonitor() ` to your application startup. This is in your ` program.cs ` class.
24
+ - Add ` UseAzureMonitor() ` to your application startup, in your ` program.cs ` class.
25
25
26
26
``` csharp
27
27
// Create a new ASP.NET Core web application builder.
@@ -40,13 +40,13 @@ Use one of the following three ways to configure the connection string:
40
40
app .Run ();
41
41
```
42
42
43
- - Set an environment variable :
43
+ - Set an environment variable .
44
44
45
45
```console
46
46
APPLICATIONINSIGHTS_CONNECTION_STRING = < Your Connection String >
47
47
```
48
48
49
- - Add the following section to your `appsettings .json ` config file :
49
+ - Add the following section to your `appsettings .json ` config file .
50
50
51
51
```json
52
52
{
@@ -99,7 +99,7 @@ Use one of the following two ways to configure the connection string:
99
99
});
100
100
```
101
101
102
- - Set an environment variable :
102
+ - Set an environment variable .
103
103
```console
104
104
APPLICATIONINSIGHTS_CONNECTION_STRING = < Your Connection String >
105
105
```
@@ -117,13 +117,13 @@ To set the connection string, see [Connection string](java-standalone-config.md#
117
117
118
118
Use one of the following two ways to configure the connection string :
119
119
120
- - Set an environment variable :
120
+ - Set an environment variable .
121
121
122
122
```console
123
123
APPLICATIONINSIGHTS_CONNECTION_STRING = < Your Connection String >
124
124
```
125
125
126
- - Use configuration object :
126
+ - Use a configuration object .
127
127
128
128
```typescript
129
129
// Import the useAzureMonitor function and the AzureMonitorOpenTelemetryOptions class from the @azure/monitor-opentelemetry package.
@@ -144,13 +144,13 @@ Use one of the following two ways to configure the connection string:
144
144
145
145
Use one of the following two ways to configure the connection string :
146
146
147
- - Set an environment variable :
147
+ - Set an environment variable .
148
148
149
149
```console
150
150
APPLICATIONINSIGHTS_CONNECTION_STRING = < Your Connection String >
151
151
```
152
152
153
- - Pass into `configure_azure_monitor `:
153
+ - Use the `configure_azure_monitor `function .
154
154
155
155
```python
156
156
# Import the `configure_azure_monitor()` function from the `azure.monitor.opentelemetry` package.
@@ -167,7 +167,7 @@ configure_azure_monitor(
167
167
168
168
## Set the Cloud Role Name and the Cloud Role Instance
169
169
170
- You might want to update the [Cloud Role Name ](app - map .md #understand - the - cloud - role - name - within - the - context - of - an - application - map ) and the Cloud Role Instance from the default values to something that makes sense to your team . They appear on the Application Map as the name underneath a node .
170
+ For [ supported languages ]( opentelemetry - enable . md # whats - the - current - release - state - of - features - within - the - azure - monitor - opentelemetry - distro ), the Azure Monitor OpenTelemetry Distro automatically detects the resource context and provides default values for the [Cloud Role Name](app-map.md#understand-the-cloud-role-name-within-the-context-of-an-application-map) and the Cloud Role Instance properties of your component . However , you might want to override the default values to something that makes sense to your team . The cloud role name value appears on the Application Map as the name underneath a node .
171
171
172
172
### [ASP.NET Core](#tab/aspnetcore)
173
173
@@ -845,7 +845,7 @@ The following OpenTelemetry configurations can be accessed through environment v
845
845
| Environment variable | Description |
846
846
| -------------------------- | -------------------------------------------------- |
847
847
| `APPLICATIONINSIGHTS_CONNECTION_STRING ` | Set it to the connection string for your Application Insights resource . |
848
- | `APPLICATIONINSIGHTS_STATSBEAT_DISABLED ` | Set it to `true ` to opt - out of internal metrics collection . |
848
+ | `APPLICATIONINSIGHTS_STATSBEAT_DISABLED ` | Set it to `true ` to opt out of internal metrics collection . |
849
849
| `OTEL_RESOURCE_ATTRIBUTES ` | Key - value pairs to be used as resource attributes . For more information about resource attributes , see the [Resource SDK specification ](https :// github.com/open-telemetry/opentelemetry-specification/blob/v1.5.0/specification/resource/sdk.md#specifying-resource-information-via-an-environment-variable). |
850
850
| `OTEL_SERVICE_NAME ` | Sets the value of the `service .name ` resource attribute . If `service .name ` is also provided in `OTEL_RESOURCE_ATTRIBUTES `, then `OTEL_SERVICE_NAME ` takes precedence . |
851
851
@@ -854,7 +854,7 @@ The following OpenTelemetry configurations can be accessed through environment v
854
854
| Environment variable | Description |
855
855
| -------------------------- | -------------------------------------------------- |
856
856
| `APPLICATIONINSIGHTS_CONNECTION_STRING ` | Set it to the connection string for your Application Insights resource . |
857
- | `APPLICATIONINSIGHTS_STATSBEAT_DISABLED ` | Set it to `true ` to opt - out of internal metrics collection . |
857
+ | `APPLICATIONINSIGHTS_STATSBEAT_DISABLED ` | Set it to `true ` to opt out of internal metrics collection . |
858
858
| `OTEL_RESOURCE_ATTRIBUTES ` | Key - value pairs to be used as resource attributes . For more information about resource attributes , see the [Resource SDK specification ](https :// github.com/open-telemetry/opentelemetry-specification/blob/v1.5.0/specification/resource/sdk.md#specifying-resource-information-via-an-environment-variable). |
859
859
| `OTEL_SERVICE_NAME ` | Sets the value of the `service .name ` resource attribute . If `service .name ` is also provided in `OTEL_RESOURCE_ATTRIBUTES `, then `OTEL_SERVICE_NAME ` takes precedence . |
860
860
0 commit comments