opentelemetry-java/examples/zipkin
John Watson 931ad5b723
Properly shutdown tracer providers synchronously via close() (#2828)
* Properly shutdown tracer providers synchronously via close()
Resolves #2825

* formatting
2021-02-17 10:39:19 +09:00
..
src/main/java/io/opentelemetry/example/zipkin Properly shutdown tracer providers synchronously via close() (#2828) 2021-02-17 10:39:19 +09:00
README.md Use shadow plugin to generate bundled jars. (#2641) 2021-02-02 12:04:54 +09:00
build.gradle Update the examples for v0.10.0 (#2030) 2020-11-05 16:32:58 -08:00

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.