Skip to content

build: add OTEL span around build function#2742

Merged
tonistiigi merged 1 commit into
docker:masterfrom
tonistiigi:otel-build
Oct 28, 2024
Merged

build: add OTEL span around build function#2742
tonistiigi merged 1 commit into
docker:masterfrom
tonistiigi:otel-build

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Small improvement for OTEL trace to group all the grpc requests made by build function under the same parent.

Comment thread build/build.go Outdated
resultHandle, rr, err = NewResultHandle(ctx, cc, *so, "buildx", buildFunc, ch)
resultHandleFunc(dp.driverIndex, resultHandle)
} else {
span, ctx := tracing.StartSpan(ctx, "Build")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does casing matters?

Suggested change
span, ctx := tracing.StartSpan(ctx, "Build")
span, ctx := tracing.StartSpan(ctx, "build")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🤷 Is there a convention? Or should we define one?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@thompson-shaun thompson-shaun modified the milestones: v0.18.0, v0.19.0 Oct 23, 2024
@crazy-max crazy-max modified the milestones: v0.19.0, v0.18.0 Oct 25, 2024
@tonistiigi tonistiigi merged commit 1813483 into docker:master Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants