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

Distributed Tracing feature #70

Open
Aki-7 opened this issue Aug 5, 2021 · 0 comments
Open

Distributed Tracing feature #70

Aki-7 opened this issue Aug 5, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Aki-7
Copy link
Member

Aki-7 commented Aug 5, 2021

Dependencies

Feature Request

Distributed tracing for Jenkins Remoting.

Purpose

Monitoring and troubleshooting Jenkins agents by tracing the remoting behavior.

Challenges

How to instrument remoting

  • Use EngineListener and ChannelListener

attempt PR: #49

What we can trace is restricted

  • Modify the remoting module to instrument more

attempt PR: jenkinsci/remoting#471

A completely different method might work well.

  • Sniffing packet payload?

How to collect spans when the connection is not established

The easiest way to use EngingListener is to send a listener from the controller and register the listener.
But then, we cannot collect spans before the initial connection.
Also, we may not be able to collect spans after the connection is closed and before the connection is established again. see #65.

  • Setup instrumentation when launching agent.

attempt PR: jenkinsci/remoting#471

How we can contribute to the better monitoring and troubleshooting experience?

OpenTelemetry Plugin already trace the time spent to allocate a node to a job, which includes the time to provision a new node if needed.

We are trying to create more detailed spans but it is difficult to know what kind of spans are helpful for monitoring and troubleshooting.

Here is the draft of the spans: https://docs.google.com/document/d/1gjRamLWz3NwenVifC5pYyBMmxsUjl9MjspZF0mRYeaI/edit#heading=h.6xn68iwvd7gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant