You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Self-hosters running the inference-gateway stack want CLI metrics in their existing observability stack (Prometheus/Grafana via an OpenTelemetry collector), not only local infer stats.
Design
Optional OTLP metric exporter behind metrics.otlp.{endpoint, headers, interval} (inactive when endpoint is empty — no otel SDK initialization). The exporter is a second sink on the recorder's event stream, not a second instrumentation pass. Mapping:
infer.tool.calls counter, attrs {tool, outcome}
infer.tool.duration histogram, attrs {tool}
infer.tokens counter, attrs {model, direction}
infer.sessions counter, attrs {mode}
Use the otel-go SDK meter provider with a periodic reader; flush on shutdown.
Acceptance criteria
Metrics visible via a local otel-collector debug exporter; example collector config in docs
No otel dependency initialized when the endpoint is unset
Exporter failures never affect CLI operation (log-and-drop)
Dependencies
Depends on #841 (the recorder and its event stream).
Activity
feat(metrics): opt-in OTLP export to an OpenTelemetry collector
inference-gateway-releaser commentedon Jul 12, 2026
🎉 This issue has been resolved in version 0.145.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
feat(channels): wire OTLP telemetry into channels-manager daemon (#922)