[OpenTelemetry] allow to overwrite provided Resource attributes #28986
Labels
good first issue
Suitable for new contributors
priority-4-low
Low priority, unlikely to be done unless it becomes important to more people
type:feature
Feature (new functionality)
To allow users to overwrite our defined resource attributes, we should check if the following environment variables are defined.
If they are unset or empty, our variables should be set.
For the three attributes that would be:
OTEL_SERVICE_NAME
OTEL_SERVICE_NAMESPACE
( not officially in specification, but used in e.g. in the Python SDK https://pypi.org/project/opentelemetry_wrapper/)OTEL_SERVICE_VERSION
( not implemented Add OTEL_SERVICE_VERSION open-telemetry/opentelemetry-specification#1901 )Originally posted by @secustor in #28976 (reply in thread)
The code is located here:
renovate/lib/instrumentation/index.ts
Lines 46 to 48 in e7bcf3f
The text was updated successfully, but these errors were encountered: