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

util/tracing/transform: sync with otel v1.11.1 #3548

Closed

Conversation

AkihiroSuda
Copy link
Member

The files are now synched with go generate.

The files are now synched with `go generate`.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
func Spans(sdl []*tracepb.ResourceSpans) []tracesdk.ReadOnlySpan {
// Spans transforms a slice of OpenTelemetry spans into a slice of OTLP
// ResourceSpans.
func Spans(sdl []tracesdk.ReadOnlySpan) []*tracepb.ResourceSpans {
Copy link
Member Author

@AkihiroSuda AkihiroSuda Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function now does the opposite? 🤔
Not sure if we can keep syncing the package with otel

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

Maybe it was replaced with something.

Copy link
Member

@tonistiigi tonistiigi Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aneurysm9 @MrAlias Any suggestions? This was used to forward the traces from containers/clients to whatever telemetry controller was configured with buildkit daemon, without containers needing to configure telemetry for themselves(they wouldn't have network access to do that anyway).

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the stated source of this file was actually the source. Looking through the history of that source it always transformed in the direction it currently does.

I can't say with any certainty, but I expect the original in this project was not copied from that source. I think that direction of the transformation is still be possible, but it would need to be written out instead of generated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AkihiroSuda I think I might be remembering it wrong as I also can't find the old code in otel repo. So I guess I wrote this package myself as a reverse version of the upstream one. In that case, we should just look at what has changed in the upstream package and if there are any new keys and logic there, and make matching changes to our package so we don't drop any information during the conversion.

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

Successfully merging this pull request may close these issues.

3 participants