Demonstrates how to use OpenTelemetry tracing and metrics with the Ruby SDK
First, in another terminal start up a Grafana OpenTelemetry instance which will collect telemetry and provide the Grafana UI for viewing the data.
docker compose upIn another terminal, start the worker
bundle exec ruby worker.rbFinally start the workflow
bundle exec ruby starter.rbYou should be able to see the result in the terminal.
To view the Grafana dashboard go to http://localhost:3000
You can find the trace by clicking on the "Explore" tab, selecting "Tempo" as the data source, and switching the query type to "Search".
There will be a trace for my-service containing the workflow trace.