latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-21163196628.8 KB

2d6e4912e230

otel

Receive Metrics

Ingest 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.

post/v1/metrics

Response

Successful Response

{"stackTrail":"paths:/v1/metrics:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}