Closed rangamani54 closed 3 weeks ago
global configuration at the server level to inject/define custom span attributes
Could you rely on resource attributes? If so, you just have to use config property otel.resource.attributes
.
As Cyrille said you can use otel.resources.attributes
or OTEL_RESOURCE_ATTRIBUTES environment variable passed to your Jenkins process.
https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
What feature do you want to see added?
I want to inject custom span attributes into the child spans, I can see
withSpanAttributes
, that it's working very well, but this will only work at the job/pipeline level or stage level. However, I need the custom span attributes on all pipelines running on the server. Can we have a global configuration at the server level to inject/define custom span attributes?Upstream changes
No response
Are you interested in contributing this feature?
No response