MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _recent_errors_payload

Function _recent_errors_payload

uncommon_route/support.py:177–184  ·  view source on GitHub ↗
(limit: int)

Source from the content-addressed store, hash-verified

175
176
177def _recent_errors_payload(limit: int) -> list[dict[str, Any]]:
178 traces = _trace_store()
179 if traces.count > 0:
180 return traces.recent(limit=limit, errors_only=True)
181 return [
182 trace for trace in _legacy_recent_traces(limit)
183 if trace.get("error_code") or int(trace.get("status_code", 0) or 0) >= 400
184 ]
185
186
187def _telemetry_status_payload() -> dict[str, Any]:

Callers 1

build_support_bundleFunction · 0.85

Calls 4

_trace_storeFunction · 0.85
_legacy_recent_tracesFunction · 0.85
recentMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected