jenkinsci / opentelemetry-plugin

Monitor and observe Jenkins with OpenTelemetry.
https://plugins.jenkins.io/opentelemetry/
Apache License 2.0
97 stars 49 forks source link

Injecting span attributes to child spans at server level #939

Open rangamani54 opened 1 week ago

rangamani54 commented 1 week ago

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

cyrille-leclerc commented 1 week 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.