Receive Metrics
Changed onIngest content-free coding-agent outcome metrics from OTLP metric points.
Records the outcome counters a coding agent reports on the metrics signal and that Otari has no other source for: lines of code changed, commits, pull requests, and active time. Points are stored exactly as reported, with their OTLP series identity, so a cumulative counter is turned into an increment at read time rather than re-counted on every export. Metrics that duplicate an already-recorded signal (token/cost usage, already billed; edit decisions, already captured as behavioral events) are skipped, as is any metric name this gateway does not know, so a newer agent version never breaks reception.
Outcome metrics are never billable: they touch no budget and no spend. Capture answers to the same capture_agent_telemetry toggle as behavioral events; with it off, the export still succeeds and simply stores nothing.
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
Response
Successful Response
Changes
- info
api operation id
receive_metrics_otlp_v1_metrics_postremoved and replaced withotel-receive_metrics
- info
- info
endpoint added
- info