Production operation needs metrics, per-tenant traceable logs and a working OTel export. Today there is no /metrics, logs carry no tenant identity, MCP is untraced, and the OTLP endpoint is configured for port 4317 (gRPC) while the exporter speaks HTTP.
What to change
/metrics in Prometheus format, including the bp_entitlement_check_* metrics (MVP-1.2) and the usage-outbox backlog (MVP-1.5).
JSON logs with a tenant_id request span.
OTel instrumentation on the MCP server.
Fix the OTLP endpoint port (4317 is gRPC; the exporter speaks HTTP).
Acceptance
/metrics scrapes cleanly and exposes scan, entitlement and outbox metrics.
Every request log line carries tenant_id; logs are valid JSON.
MCP calls appear as spans in SigNoz.
Traces arrive over the HTTP OTLP endpoint with no dropped-export errors in the logs.
## Goal
Production operation needs metrics, per-tenant traceable logs and a working OTel export. Today there is no `/metrics`, logs carry no tenant identity, MCP is untraced, and the OTLP endpoint is configured for port 4317 (gRPC) while the exporter speaks HTTP.
## What to change
- `/metrics` in Prometheus format, including the `bp_entitlement_check_*` metrics (MVP-1.2) and the usage-outbox backlog (MVP-1.5).
- JSON logs with a `tenant_id` request span.
- OTel instrumentation on the MCP server.
- Fix the OTLP endpoint port (4317 is gRPC; the exporter speaks HTTP).
## Acceptance
- [ ] `/metrics` scrapes cleanly and exposes scan, entitlement and outbox metrics.
- [ ] Every request log line carries `tenant_id`; logs are valid JSON.
- [ ] MCP calls appear as spans in SigNoz.
- [ ] Traces arrive over the HTTP OTLP endpoint with no dropped-export errors in the logs.
sharang
added this to the Production MVP milestone 2026-09-20 20:17:22 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Production operation needs metrics, per-tenant traceable logs and a working OTel export. Today there is no
/metrics, logs carry no tenant identity, MCP is untraced, and the OTLP endpoint is configured for port 4317 (gRPC) while the exporter speaks HTTP.What to change
/metricsin Prometheus format, including thebp_entitlement_check_*metrics (MVP-1.2) and the usage-outbox backlog (MVP-1.5).tenant_idrequest span.Acceptance
/metricsscrapes cleanly and exposes scan, entitlement and outbox metrics.tenant_id; logs are valid JSON.