The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
inventory-api
Stock levels and cart reservations for the fulfillment platform. Go,
net/http, PostgreSQL through pgx v5 (pgxpool, traced with otelpgx).
Traces and logs go to Traceway over OTLP (OTEL_EXPORTER_OTLP_ENDPOINT,
OTEL_SERVICE_NAME=inventory-api); logs are written with log/slog through
the OpenTelemetry slog bridge.
go test ./...
go run ./cmd/server
Routes:
POST /api/reservations– reserve stock for every line of a cart (15 minute hold)POST /api/reservations/{id}/release– release a holdGET /api/inventory/{sku}– stock of a SKU per warehouseGET /api/warehouses– the warehouses