Merge pull request #2207 from rrylee/docs_opentelemetry_config

docs: update opentracing doc, using opentelemetry
This commit is contained in:
Andrea Luzzardi 2022-04-19 16:52:23 -07:00 committed by GitHub
commit 8fad200476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -28,17 +28,17 @@ export BUILDKIT_HOST=docker-container://super-buildkit
export DOCKER_HOST=tcp://my-remote-docker-host:2376 export DOCKER_HOST=tcp://my-remote-docker-host:2376
``` ```
## OpenTracing Support ## OpenTelemetry Support
Both Dagger and buildkit support opentracing. To capture traces to Both Dagger and buildkit support opentelemetry. To capture traces to
[Jaeger](https://github.com/jaegertracing/jaeger), set the `JAEGER_TRACE` environment variable to the collection address. [Jaeger](https://github.com/jaegertracing/jaeger), set the `OTEL_EXPORTER_JAEGER_ENDPOINT` environment variable to the collection address.
A `docker-compose` file is available to help bootstrap the tracing environment: A `docker-compose` file is available to help bootstrap the tracing environment:
```shell ```shell
docker-compose -f ./dagger-main/tracing.compose.yaml up -d docker-compose -f ./dagger-main/tracing.compose.yaml up -d
export JAEGER_TRACE=localhost:6831
export BUILDKIT_HOST=docker-container://dagger-buildkitd-jaeger export BUILDKIT_HOST=docker-container://dagger-buildkitd-jaeger
export OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces
dagger up dagger up
``` ```

View File

@ -38,17 +38,17 @@ To run a customized Buildkit version with Docker, this can be done using the bel
docker run -d --name dagger-buildkitd --privileged --network=host docker.io/moby/buildkit:latest docker run -d --name dagger-buildkitd --privileged --network=host docker.io/moby/buildkit:latest
``` ```
## OpenTracing Support ## OpenTelemetry Support
Both Dagger and buildkit support opentracing. To capture traces to Both Dagger and buildkit support opentelemetry. To capture traces to
[Jaeger](https://github.com/jaegertracing/jaeger), set the `JAEGER_TRACE` environment variable to the collection address. [Jaeger](https://github.com/jaegertracing/jaeger), set the `OTEL_EXPORTER_JAEGER_ENDPOINT` environment variable to the collection address.
A `docker-compose` file is available to help bootstrap the tracing environment: A `docker-compose` file is available to help bootstrap the tracing environment:
```shell ```shell
docker-compose -f ./dagger-main/tracing.compose.yaml up -d docker-compose -f ./dagger-main/tracing.compose.yaml up -d
export JAEGER_TRACE=localhost:6831
export BUILDKIT_HOST=docker-container://dagger-buildkitd-jaeger export BUILDKIT_HOST=docker-container://dagger-buildkitd-jaeger
export OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces
dagger up dagger up
``` ```