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

Function find_trace

uncommon_route/support.py:274–285  ·  view source on GitHub ↗
(request_id: str)

Source from the content-addressed store, hash-verified

272
273
274def find_trace(request_id: str) -> dict[str, Any] | None:
275 target = str(request_id or "").strip()
276 if not target:
277 return None
278 record = _trace_store().find(target)
279 if record is not None:
280 return record
281 stats = RouteStats()
282 for legacy_record in stats.export_records():
283 if legacy_record.get("request_id") == target:
284 return legacy_record
285 return None
286
287
288def _write_json(bundle: zipfile.ZipFile, name: str, payload: dict[str, Any] | list[dict[str, Any]]) -> None:

Callers 1

_cmd_supportFunction · 0.90

Calls 5

export_recordsMethod · 0.95
RouteStatsClass · 0.90
_trace_storeFunction · 0.85
findMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected