Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 858 Bytes

opentelemetry-example.md

File metadata and controls

31 lines (26 loc) · 858 Bytes
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.