Trace ingest diagnostics for one monitor
Why traces, metrics or logs sent to this monitor did or did not arrive: the newest 20 ingest attempts (refusals and routine drops with a reason code, and accepted batches; kept 7 days), the newest accepted attempt, and a summary of the monitor's newest traced run.
Call it after sending a test span, or whenever an exporter is configured and nothing shows up. Two failures leave no attempt at all, because neither reaches a point where LastPing knows which project the request belongs to: an exporter using gRPC against the OTLP gRPC port, and a missing or wrong key. An empty attempts list means check those two first.
This is what the MCP get_trace_diagnostics tool returns. 404 if the monitor does not exist in the authenticated project (no existence oracle).
Request
- Base URL: https://app.lastping.dev
- URL: https://app.lastping.dev/api/v1/checks/{id}/trace-diagnostics
- Auth: API key in header X-Api-Key
Response
The diagnostics.
Example response
{
"attempts": [
{
"at": "2026-09-21T16:40:12Z",
"outcome": "refused",
"reason": "wrong_scope",
"bytes": 20480,
"protocol": "http/protobuf",
"user_agent": "OTel-OTLP-Exporter-Python/1.27.0",
"signal": "traces"
}
],
"last_accepted_at": "2026-09-21T16:40:12Z",
"summary": {
"rid": "trace-4bf92f3577b34da6a3ce929d0e0e4736",
"span_count": 6,
"model": "claude-sonnet-4-5",
"model_calls": 2,
"tool_calls": 1,
"tokens_in": 12040,
"tokens_out": 880,
"cost_usd": "0.049320",
"cost_source": "estimated",
"last_span_at": "2026-09-21T16:40:12Z"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.