Skip to content

Commit f1daa5a

Browse files
docs: resolve UUF #537961 - document OTEL_RESOURCE_ATTRIBUTES env var
Co-authored-by: Copilot <[email protected]>
1 parent 13f4c0c commit f1daa5a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

articles/container-apps/opentelemetry-agents.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn to record and query data collected using OpenTelemetry in Azu
44
services: container-apps
55
author: craigshoemaker
66
ms.service: azure-container-apps
7-
ms.date: 12/09/2025
7+
ms.date: 03/30/2026
88
ms.author: cshoe
99
ms.topic: how-to
1010
ms.custom:
@@ -756,14 +756,15 @@ In the event of a messaging inturruptions to an endpoint, the OpenTelemetry agen
756756

757757
The OpenTelemetry agent automatically injects a set of environment variables into your application at runtime.
758758

759-
The first two environment variables follow standard OpenTelemetry exporter configuration and are used in OTLP standard software development kits. If you explicitly set the environment variable in the container app specification, your value overwrites the automatically injected value.
759+
The first three environment variables follow standard OpenTelemetry configuration and are used in OTLP standard software development kits. If you explicitly set the environment variable in the container app specification, your value overwrites the automatically injected value.
760760

761761
Learn about the OTLP exporter configuration see, [OTLP Exporter Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/).
762762

763763
| Name | Description |
764764
|---|---|
765765
| `OTEL_EXPORTER_OTLP_ENDPOINT` | A base endpoint URL for any signal type, with an optionally specified port number. This setting is helpful when you’re sending more than one signal to the same endpoint and want one environment variable to control the endpoint. Example: `http://otel.service.k8se-apps:4317/` |
766766
| `OTEL_EXPORTER_OTLP_PROTOCOL` | Specifies the OTLP transport protocol used for all telemetry data. The managed agent only supports `grpc`. Value: `grpc`. |
767+
| `OTEL_RESOURCE_ATTRIBUTES` | A comma-separated list of key-value pairs that define [resource attributes](https://opentelemetry.io/docs/specs/otel/resource/sdk/) attached to all telemetry data. The managed agent populates this variable with container app attributes such as the app name and environment. Some OpenTelemetry SDK implementations require you to explicitly enable environment-based resource detection to use these attributes. If you set this variable in the container app specification, your value overwrites the automatically injected value. |
767768

768769
The other three environment variables are specific to Azure Container Apps, and are always injected. These variables hold agent’s endpoint URLs for each specific data type (logs, metrics, traces).
769770

0 commit comments

Comments
 (0)