Observability
OpenCodeHub ships with built‑in metrics and optional OpenTelemetry tracing.
Metrics (Prometheus)
Section titled “Metrics (Prometheus)”The server exposes Prometheus‑compatible metrics via:
GET /api/metrics
Default metrics include HTTP duration and active runner counts.
Tracing (OpenTelemetry)
Section titled “Tracing (OpenTelemetry)”Enable tracing by setting:
ENABLE_TRACING=trueOTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318/v1/tracesThe system uses the OpenTelemetry Node SDK and auto‑instrumentations to emit traces.
Logging
Section titled “Logging”Server logs are emitted using pino. In development, use pino-pretty or your preferred log formatter.