Has anyone implemented OpenTelemetry or similar observability APIs in Jenkins?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Has anyone implemented OpenTelemetry or similar observability APIs in Jenkins?

Matt Sicker
Site: https://opentelemetry.io/

This seems like it could be a useful thing to integrate with,
particularly for Remoting-related network calls, but it could
potentially be extended to other HTTP client type calls and such for
richer tracing data. As a Jenkins admin, you'd be able to identify
issues in your Jenkins cluster more easily. Implemented properly, it
could even provide a way for users to submit traces to help debug
issues they find.

I looked at their Java library, and it seems to have an absurd amount
of dependencies compared to a proper logging library (which has no
required dependencies), but the gist of attaching traces and spans to
requests/responses is fairly simple to implement.

--
Matt Sicker
Senior Software Engineer, CloudBees

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAEot4ow2XtHJZh1gQ1DqZxwBYDRFtbv8Yi0KtPECt0beF8wxew%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Has anyone implemented OpenTelemetry or similar observability APIs in Jenkins?

Cyrille Le Clerc-3
Hello Matt,

For Your Information
  • I'm writing a PoC to instrument Jenkins with OpenTelemetry.
    • code: https://github.com/cyrille-leclerc/opentelemetry-plugin
  • My focus for the moment is tracing the execution of jobs with OpenTelemetry distributed traces
    • I have a glitch for which I am asking for help on https://groups.google.com/g/jenkinsci-dev/c/TEMMId7vzh0
  • I plan later down the road to instrument:
    • Jobs with OpenTelemetry metrics and logs
    • Jenkins internals with OpenTelemetry metrics and logs
  • We could also instrument Jenkins HTTP requests as you said
As OpenTelemetry is emerging as the standard for Observability / Monitoring with integrations with most observability technologies, open source and commercial, such as Jaeger, Elastic, Prometheus...), this integration will enable CI monitoring to most Jenkins users.

Cyrille

On Thursday, May 7, 2020 at 12:11:37 AM UTC+2, Matt Sicker wrote:
Site: <a href="https://opentelemetry.io/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fopentelemetry.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFA1S6djTp_Bfdt_siFvz7gcCn29A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fopentelemetry.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFA1S6djTp_Bfdt_siFvz7gcCn29A&#39;;return true;">https://opentelemetry.io/

This seems like it could be a useful thing to integrate with,
particularly for Remoting-related network calls, but it could
potentially be extended to other HTTP client type calls and such for
richer tracing data. As a Jenkins admin, you'd be able to identify
issues in your Jenkins cluster more easily. Implemented properly, it
could even provide a way for users to submit traces to help debug
issues they find.

I looked at their Java library, and it seems to have an absurd amount
of dependencies compared to a proper logging library (which has no
required dependencies), but the gist of attaching traces and spans to
requests/responses is fairly simple to implement.

--
Matt Sicker
Senior Software Engineer, CloudBees

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/296be7c7-f98b-4f80-a3a8-f023ffb118c7o%40googlegroups.com.