Skip to content

Commit eb7b4d3

Browse files
Merge pull request #269375 from KennedyDenMSFT/US212421
Added language for Distro support re: cloud role name & instance values
2 parents e5c6ad3 + 1f45d8b commit eb7b4d3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A connection string in Application Insights defines the target location for send
2121

2222
Use one of the following three ways to configure the connection string:
2323

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.
2525

2626
```csharp
2727
// 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:
4040
app.Run();
4141
```
4242

43-
- Set an environment variable:
43+
- Set an environment variable.
4444

4545
```console
4646
APPLICATIONINSIGHTS_CONNECTION_STRING=<Your Connection String>
4747
```
4848

49-
- Add the following section to your `appsettings.json` config file:
49+
- Add the following section to your `appsettings.json` config file.
5050

5151
```json
5252
{
@@ -99,7 +99,7 @@ Use one of the following two ways to configure the connection string:
9999
});
100100
```
101101

102-
- Set an environment variable:
102+
- Set an environment variable.
103103
```console
104104
APPLICATIONINSIGHTS_CONNECTION_STRING=<Your Connection String>
105105
```
@@ -117,13 +117,13 @@ To set the connection string, see [Connection string](java-standalone-config.md#
117117

118118
Use one of the following two ways to configure the connection string:
119119

120-
- Set an environment variable:
120+
- Set an environment variable.
121121

122122
```console
123123
APPLICATIONINSIGHTS_CONNECTION_STRING=<Your Connection String>
124124
```
125125

126-
- Use configuration object:
126+
- Use a configuration object.
127127

128128
```typescript
129129
// 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:
144144

145145
Use one of the following two ways to configure the connection string:
146146

147-
- Set an environment variable:
147+
- Set an environment variable.
148148

149149
```console
150150
APPLICATIONINSIGHTS_CONNECTION_STRING=<Your Connection String>
151151
```
152152

153-
- Pass into `configure_azure_monitor`:
153+
- Use the `configure_azure_monitor`function.
154154

155155
```python
156156
# Import the `configure_azure_monitor()` function from the `azure.monitor.opentelemetry` package.
@@ -167,7 +167,7 @@ configure_azure_monitor(
167167

168168
## Set the Cloud Role Name and the Cloud Role Instance
169169

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.
171171

172172
### [ASP.NET Core](#tab/aspnetcore)
173173

@@ -845,7 +845,7 @@ The following OpenTelemetry configurations can be accessed through environment v
845845
| Environment variable | Description |
846846
| -------------------------- | -------------------------------------------------- |
847847
| `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. |
849849
| `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). |
850850
| `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. |
851851

@@ -854,7 +854,7 @@ The following OpenTelemetry configurations can be accessed through environment v
854854
| Environment variable | Description |
855855
| -------------------------- | -------------------------------------------------- |
856856
| `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. |
858858
| `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). |
859859
| `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. |
860860

0 commit comments

Comments
 (0)