Add support for OpenTelemetry config #28976
matthewwjones
started this conversation in
Suggest an Idea
Replies: 1 comment 8 replies
-
To allow setting attributes using Admin/Bot configs which will take precedence to our variables sounds good. Don't like the OTEL_RESOURCE_ATTRIBUTES variant as that would not allow to selectively overwrite attributes e.g. the service name, but keep the version. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
We're using Renovate in a large enterprise. It's great to see that there is support for capturing traces via OpenTelemetry - thank you for that!
We would like to be able to configure OpenTelemetry so that we can differentiate trace traffic originating from Renovate from the large volumes of trace traffic we have from other components.
What I have tried
To do this, I've tried to do this using the following environment variables:
These two settings are particularly important.
Checking the output in the logs after having enabled trace debugging with the
RENOVATE_TRACING_CONSOLE_EXPORTER
env var, I see:The configuration provided in https://github.com/renovatebot/renovate/blob/main/lib/instrumentation/index.ts#L43 takes precendence over the
OTEL_*
env vars that we've set.What I'm requesting
I think exposing Telemetry configuration via the
config.js
would be great, or only setting the resource attributes above ifOTEL_RESOURCE_ATTRIBUTES
is not set in the environment.Beta Was this translation helpful? Give feedback.
All reactions