A single-file Go example that runs the Traceway backend and an OTel-instrumented Gin app in one process. No external databases required — everything runs on SQLite.
- Starts the Traceway backend on
:8082with a pre-seeded user and project - Configures an OTLP HTTP trace exporter that sends spans to the backend
- Runs a Gin server on
:8080with a single/hello/:nameendpoint that creates a child span and optionally records an error
go build .
./embedded-backend-otelThen try:
http://localhost:8080/hello/world— successful request with adb.lookupspanhttp://localhost:8080/hello/error— request that records an error with stack trace
Open the dashboard at http://localhost:8082 and log in with admin@localhost.com / admin to see the traces.