Env var resource configuration should be RECOMMENDED and not optional #3929
Labels
area:configuration
Related to configuring the SDK
area:sdk
Related to the SDK
spec:miscellaneous
For issues that don't match any other spec label
spec:resource
Related to the specification/resource directory
triage:accepted:needs-sponsor
Ready to be implemented, but does not yet have a specification sponsor
What are you trying to achieve?
I'd like to be able to configure common OTel resource attributes via environment variables in the same way across different languages.
Currently env var configuration is completely optional:
opentelemetry-specification/specification/configuration/sdk-environment-variables.md
Line 15 in 4f71c16
At the same time some env vars are supported by virtually all SDKs:
https://github.com/open-telemetry/opentelemetry-specification/blob/ff66b248d5f746651008fb87ce7d672d12991a96/spec-compliance-matrix.md#environment-variables
This is problematic when configuring polyglot applications, writing docs for native instrumentations, etc.
Having
OTEL_SERVICE_NAME
andOTEL_RESOURCE_ATTRIBUTES
as RECOMMENDED would solve most of my concerns.Additional context.
See also open-telemetry/opentelemetry.io#4059, open-telemetry/opentelemetry-cpp#2559
The text was updated successfully, but these errors were encountered: