You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/docs/guides/opentelemetry.md

1.1 KiB

title description keywords
OpenTelemetry support OpenTelemetry support for your builder build, buildx, buildkit, opentelemetry, tracing

To capture the trace to Jaeger, set JAEGER_TRACE environment variable to the collection address using a driver-opt.

First create a Jaeger container:

$ docker run -d --name jaeger -p "6831:6831/udp" -p "16686:16686" jaegertracing/all-in-one

Then create a docker-container builder that will use the Jaeger instance via the JAEGER_TRACE env var:

$ docker buildx create --use \
  --name mybuilder \
  --driver docker-container \
  --driver-opt "network=host" \
  --driver-opt "env.JAEGER_TRACE=localhost:6831"

Boot and inspect mybuilder:

$ docker buildx inspect --bootstrap

Buildx commands should be traced at http://127.0.0.1:16686/:

OpenTelemetry Buildx Bake