Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split and link traces of triggered jobs #976

Open
taro-yanagiya opened this issue Nov 1, 2024 · 3 comments
Open

Split and link traces of triggered jobs #976

taro-yanagiya opened this issue Nov 1, 2024 · 3 comments

Comments

@taro-yanagiya
Copy link

taro-yanagiya commented Nov 1, 2024

What feature do you want to see added?

I'm using Build Step inside a job to trigger another Jenkins jobs.
This plugin generates one trace including both triggering job and triggered job.
However, since I would like to focus on one job in most cases, I think those traces should be split.
Instead using Span Link might be more appropriate to link these jobs.

Upstream changes

No response

Are you interested in contributing this feature?

No response

@cyrille-leclerc
Copy link
Contributor

Thanks for your interest in the Jenkins OTel Plugin.
Can you please help us understand your context:

  • What do you use pipeline visualization as trace for? Troubleshooting problems? Perfs optimization? Understanding/documentation?...
  • What tool do you use to visualize pipelines ads traces?

@kuisathaverat did you ever consider linking upstream & downstream pipeline runs as "span link" rather than as parent/child spans? @christophe-kamphaus-jemmic do you know if the OTel CI/CD SIG put thoughts on this linking?

@christophe-kamphaus-jemmic
Copy link
Contributor

OTel CICD SIG has not yet gotten that far that we think about span links between jobs.
It is an interesting topic that I will put on our backlog.

In general OTel SemConv there have not yet been any conventions for span links defined. There is an open ticket for this: open-telemetry/semantic-conventions#1057

@taro-yanagiya
Copy link
Author

@cyrille-leclerc

  • I'm trying to use pipeline visualization for analyzing problems.
  • I use Grafana for visualization and Clickhouse as database.

In my case, many triggers are used and the traces become huge. Using span links looks more natural because my upstream jobs don't wait for the downstream jobs to complete and the span of the upstream job doesn't surround its downstream job span. But I also understand that the upstream job can wait for the downstream jobs and parent/child spans can be appropriate in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants