tree: 7f14b7d87d5e9963aa0d69415b32eba8fd424980 [path history] [tgz]
  1. src/
  2. build.gradle
  3. README.md
opentelemetry-java/examples/zipkin/README.md

Zipkin Example

This is a simple example that demonstrates how to use the OpenTelemetry SDK to instrument a simple application using Zipkin as trace exporter.

How to run

Prerequisites

  • Java 1.8.231
  • Docker 19.03

1 - Compile

../gradlew shadowJar

2 - Run Zipkin

docker run --rm -it --name zipkin \
  -p 9411:9411 \
  openzipkin/zipkin:2.21

3 - Start the Application

java -cp build/libs/opentelemetry-examples-zipkin-0.1.0-SNAPSHOT-all.jar io.opentelemetry.example.zipkin.ZipkinExample localhost 9411

4 - Open the Zipkin UI

Navigate to http://localhost:9411/zipkin and click on search.