Skip to content

The only tool you need to know what is happening and how to fix it.

575 B
Raw Blame

orders-api

The storefront's order service: order history and order detail for signed-in customers. Go, net/http, PostgreSQL through database/sql. Traces and logs go to Traceway over OTLP (OTEL_EXPORTER_OTLP_ENDPOINT); the production binary is built with -tags otel (see internal/telemetry). Host metrics come from the OTel Collector's hostmetrics receiver.

go test ./...
go run ./cmd/server

Routes:

  • GET /api/orders – the signed-in customer's orders, newest first, with their line items
  • GET /api/orders/{id} – one order with its line items