Document environment variables in go.opentelemetry.io/otel/sdk/resource
Author: aman99dexCreated Sep 23, 2026Updated Sep 24, 2026
Part of #2046.
Add an environment variables section to the go.opentelemetry.io/otel/sdk/resource package documentation covering:
OTEL_RESOURCE_ATTRIBUTESOTEL_SERVICE_NAME
Also update the Environment and EnvironmentWithContext doc comments, which currently mention only OTEL_RESOURCE_ATTRIBUTES although OTEL_SERVICE_NAME is read as well.
Source: open-telemetry/opentelemetry-go