Skip to content

Commit

Permalink
Merge pull request docker#2742 from tonistiigi/otel-build
Browse files Browse the repository at this point in the history
build: add OTEL span around build function
  • Loading branch information
tonistiigi authored Oct 28, 2024
2 parents ad371e4 + f35dae3 commit 1813483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,9 @@ func BuildWithResultHandler(ctx context.Context, nodes []builder.Node, opts map[
resultHandle, rr, err = NewResultHandle(ctx, cc, *so, "buildx", buildFunc, ch)
resultHandleFunc(dp.driverIndex, resultHandle)
} else {
span, ctx := tracing.StartSpan(ctx, "build")
rr, err = c.Build(ctx, *so, "buildx", buildFunc, ch)
tracing.FinishWithError(span, err)
}
if !so.Internal && desktop.BuildBackendEnabled() && node.Driver.HistoryAPISupported(ctx) {
if err != nil {
Expand Down

0 comments on commit 1813483

Please sign in to comment.