Example for generated server and client, instrumented with OpenTelemetry.
- Force
go.mod
to have ogen in tools.go - Generate code by gen.go
- OpenTelemetry setup boilerplate in go-faster/sdk
- Advanced
net/http
instrumentation in internal/httpmiddleware
docker compose up
You can open Grafana dashboard on http://localhost:3000 to observe telemetry. For example, you can see client traces in TraceQL explore.