A single-file Go example that runs the Traceway backend and a Gin app instrumented with the Traceway Go client SDK in one process. No external databases required — everything runs on SQLite.
- Starts the Traceway backend on
:8082with a pre-seeded user and project - Configures the Traceway Gin middleware to send traces and exceptions to the backend
- Runs a Gin server on
:8080with a single/hello/:nameendpoint that optionally records an error
go build .
./embedded-backend-go-clientThen try:
http://localhost:8080/hello/world— successful requesthttp://localhost:8080/hello/error— request that captures an exception
Open the dashboard at http://localhost:8082 and log in with admin@localhost.com / admin to see the traces.