opentelemetry-java/examples/zipkin
John Watson 2ac3ff6e83
Convert the examples to not use the GlobalOpenTelemetry instance. (#2364)
* update the grpc example to remove global usage

* update the http example to remove global usage

* update the jaeger example to get rid of the global usage

* update the metrics example to get rid of the global OpenTelemetry usage

* update the otlp exporter example to get rid of the global OpenTelemetry usage

* update the sdk-usage example to get rid of the global OpenTelemetry usage

* update the zipkin example to get rid of the global OpenTelemetry usage

* run the formatter

* update method names and details based on feedback
2020-12-18 16:21:51 -08:00
..
src/main/java/io/opentelemetry/example/zipkin Convert the examples to not use the GlobalOpenTelemetry instance. (#2364) 2020-12-18 16:21:51 -08:00
README.md Rename all packages to follow the module name definition (#1952) 2020-10-31 10:59:11 -07: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 fatJar

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-all-0.1.0-SNAPSHOT.jar io.opentelemetry.example.zipkin.ZipkinExample localhost 9411

4 - Open the Zipkin UI

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