Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support of platforms in build section
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
- Loading branch information
Showing
12 changed files
with
397 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package compose | ||
|
||
import ( | ||
"github.com/moby/buildkit/util/tracing/detect" | ||
"go.opentelemetry.io/otel" | ||
|
||
_ "github.com/moby/buildkit/util/tracing/detect/delegated" | ||
_ "github.com/moby/buildkit/util/tracing/env" | ||
) | ||
|
||
func init() { | ||
detect.ServiceName = "compose" | ||
// do not log tracing errors to stdio | ||
otel.SetErrorHandler(skipErrors{}) | ||
} | ||
|
||
type skipErrors struct{} | ||
|
||
func (skipErrors) Handle(err error) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.