-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
detect: use newer semconv for resource and add unit test #5501
Conversation
Should we consider bumping buildkit/util/tracing/tracing.go Line 14 in 9d81766
|
@jsternberg PTAL the another import pointed out by @crazy-max @crazy-max Last time we discussed it, we thought that |
Yes I recall our discussion where we needed a pretty old version of Docker Desktop but we didn't have exportable traces feature available back then. I can try with changes from this PR and see what happens. Keep you posted. |
There is also the containerd one from vendor:
I guess we would need some coordination in the future (cc @dmcgowan) |
Ok seems it works fine with changes from this PR with a buildkit container:
I see {
"Key": "telemetry.sdk.version",
"Value": {
"Type": "STRING",
"Value": "1.28.0"
}
} Will check with Buildx vendoring this branch. |
We upgraded a dependency that upgraded otel and also changed the semconv schema for us to a newer version. We forgot to upgrade our own semconv. In the future, we may want to find a way to have a detector that doesn't require us to manually specify a semconv so we don't have to remember this. For now, I've added a test to catch when this happens so it doesn't happen again. Signed-off-by: Jonathan A. Sternberg <[email protected]>
6186b9c
to
323be17
Compare
My understanding is that different semconv versions being used by different products isn't an error or something that causes a problem. This message only comes from conflicting schemas being merged into a single one with resources and individual tracers can set their own schema version so we shouldn't need to coordinate with containerd. It might be useful though if we consolidate how we're using otel though to reduce friction in the future. I might try to mock something up of what that might look like soon. I've updated all semconv references in this project to the same version. |
Good as well with Buildx. |
There are still imports to semconv/v1.21 via containerd and |
@tonistiigi no it cannot. The issue only shows up when used directly with a resource through the |
We upgraded a dependency that upgraded otel and also changed the semconv schema for us to a newer version. We forgot to upgrade our own semconv.
In the future, we may want to find a way to have a detector that doesn't require us to manually specify a semconv so we don't have to remember this. For now, I've added a test to catch when this happens so it doesn't happen again.