id | title |
---|---|
opentelemetry-example |
OpenTelemetry Example |
You can find the source code here.
For an explanation in more detail, check the OpenTracing Example.
Firstly, start Jaeger by running the following command:
docker run --rm -it \
-p 16686:16686 \
-p 14250:14250 \
jaegertracing/all-in-one:1.36
Then start the proxy application
sbt "opentelemetryExample/runMain zio.telemetry.opentelemetry.example.ProxyApp"
and the backend application
sbt "opentelemetryExample/runMain zio.telemetry.opentelemetry.example.BackendApp"
Now perform the following request:
curl -X GET http://localhost:8080/statuses
and head over to http://localhost:16686/ to see the result.