docs: discard opentracing doc, using opentelemetry

Signed-off-by: rrylee <rrylee1994@gmail.com>
This commit is contained in:
rrylee 2022-04-15 17:43:20 +08:00 committed by rrylee
parent a6396a0a17
commit b29cfa1fc3
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
``` ```