buildx/util
Jonathan A. Sternberg bda968ad5d
metrics: add build command duration metric
This adds a build duration metric for the build command with attributes
related to the buildx driver, the error type (if any), and which options
were used to perform the build from a subset of the options.

This also refactors some of the utility methods used by the git tool to
determine filepaths into its own separate package so they can be reused
in another place.

Also adds a test to ensure the resource is initialized correctly and
doesn't error. The otel handler logging message is suppressed on buildx
invocations so we never see the error if there's a problem with the
schema url. It's so easy to mess up the schema url when upgrading OTEL
that we need a proper test to make sure we haven't broken the
functionality.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-02-14 15:58:52 -06:00
..
buildflags vendor: update buildkit to master@cbfd4023383d 2023-09-27 11:06:18 +01:00
cobrautil Mark experimental flags in `--help` 2024-01-13 19:53:56 +09:00
confutil metrics: add build command duration metric 2024-02-14 15:58:52 -06:00
desktop build: missing newline when printing build details on error 2023-06-30 13:48:02 +02:00
dockerutil build: sublogger to show docker load progress output 2023-09-12 22:24:29 +02:00
gitutil metrics: add build command duration metric 2024-02-14 15:58:52 -06:00
imagetools fix: avoid modifying source during resolver.Copy 2024-01-31 14:44:10 +00:00
ioset monitor: Enable to exec into the container 2023-03-02 19:30:29 +09:00
logutil logutil: print error from WithError if found 2023-05-30 10:00:24 +01:00
metricutil metrics: add build command duration metric 2024-02-14 15:58:52 -06:00
osutil metrics: add build command duration metric 2024-02-14 15:58:52 -06:00
platformutil separate manual and automatically detected platforms 2020-04-24 20:08:43 -07:00
progress progress: create new display object after unpause 2023-09-27 11:06:18 +01:00
resolver allow multi-node push and imagetools to use custom registry config 2021-11-04 10:02:12 -07:00
tracing enable opentelemetry support 2021-07-12 13:42:52 -07:00
userfunc Dockerfile: update golangci-lint to 1.48.0 (go 1.19 support) 2022-08-11 02:10:33 +02:00
waitmap util: add waitmap for target synchronization 2022-01-27 18:46:12 -08:00