Jaeger
Open in the new tab
Open in the new tab
Databend has the ability to export tracing data to Jaeger by integrating with the
Open in the new tab
Tutorial: Trace Databend with Jaeger
Step 1. Deploy Jaeger
This tutorial uses the All In One image to deploy Jaeger in Docker. If you already have a running Jaeger instance, you can skip this step.
docker run --rm -d --name jaeger \
-e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 4317:4317 \
-p 4318:4318 \
-p 14250:14250 \
-p 14268:14268 \
-p 14269:14269 \
-p 9411:9411 \
jaegertracing/all-in-one:latest
Step 2. Set Environment Variables
Set the following environment variables according to your actual tracing level requirements and Jaeger endpoint.
DATABEND_TRACING_CAPTURE_LOG_LEVEL
: Sets the log level that will attach to spans.DATABEND_OTEL_EXPORTER_OTLP_ENDPOINT
: Sets the endpoint the OpenTelemetry Collector is listening on.
export DATABEND_TRACING_CAPTURE_LOG_LEVEL=DEBUG
export DATABEND_OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317
Step 3. Deploy Databend
Follow the
to deploy Databend.Open in the new tabRun the following SQL statements:
CREATE TABLE t1(a INT);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 SELECT * FROM t1;
Step 4. Check Tracing Information on Jaegar
Go to
and select the Search tab.Open in the new tabSelect a service in the Service drop-down list. For example, select the databend-query service.
Click Find Traces to show the traces.