MVP-1.7 · /metrics, JSON logs with tenant_id, OTel fixes #268

Open
opened 2026-09-20 20:17:22 +00:00 by sharang · 0 comments
Owner

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.
## 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
sharang added the infrastructureenhancement labels 2026-09-20 20:17:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#268