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
Move to OpenTelemetry (#735) #778
Conversation
There is no tagged buildkit release with opentelemetry integration To fix (horrible) i have to do:
and modify the check to use only the first result:
The difference remains at runtime |
Thanks @Alvise88, will review shortly! Regarding buildkit: maybe we can continue using the same version of buildkit, and upgrade once the new one comes out. We will lose some tracing information but not too much. |
498fae3
to
ac3efa9
Compare
Ok, i disabled tracing to buildkit and reverted to v0.8.3. |
@Alvise88 I'm looking at moby/buildkit#2152 trying to understand how they integrated OpenTelemetry to BuildKit. I see for instance they're using Do you have an idea of what's the difference? Also, did you get a chance to try with Jaeger, and if so, are the spans from a dagger command combined into a single trace? Thanks! |
Hi, tomorrow i will show you how spans are genereted. I think this instruction I replaced your opentracing calls by analogy, i'm not 100% sure it's correct: I follow this documentation |
Hi @aluzzardi, i used docker compose to test tracing, the following images show you the result: |
Thanks for the explanation, and the screenshots you sent look good! For some reason, with OpenTracing, Dagger and Buildkitd show up as separate (different color in Jaeger), but they appear the same with the OpenTelemetry version, not sure why. Here's the OpenTracing details screenshot: However it's a very minor difference, I think we don't care |
I think the new integration uses the same traceprovider in the buildkit client:
currently i used only one traceprovider named Dagger, i don't know if it is better to instantiate a new provider named buildkit or consider traces as part of Dagger; the colors are related with the name of the provider |
I think the PR is good as is! Good for me to merge as soon as you remove "WIP" from the title :) Buildkit 0.9.0 is about to come out (-rc1 is out already), which means we'll be able to get OpenTracing support from there as well. |
Ok, i removed the wip annotation; tell me if you want to change the buildkit version or if it is needed a rebase. |
Okay I just reviewed the code, left a few comments, after that it's good to go.
I think it's ok, we will change the buildkit version once it comes out |
✔️ Deploy Preview for devel-docs-dagger-io ready! 🔨 Explore the source changes: e34c4ba 🔍 Inspect the deploy log: https://app.netlify.com/sites/devel-docs-dagger-io/deploys/60e7fe9c1acebe0007745dc8 😎 Browse the preview: https://deploy-preview-778--devel-docs-dagger-io.netlify.app |
d2d441e
to
e34c4ba
Compare
Signed-off-by: Alvise <vitalvise@gmail.com>
e34c4ba
to
99d2514
Compare
Signed-off-by: Alvise vitalvise@gmail.com