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

Function handle_traces

uncommon_route/proxy.py:3796–3806  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

3794 )
3795
3796 async def handle_traces(request: Request) -> JSONResponse:
3797 denied = _admin_auth_failure(request)
3798 if denied is not None:
3799 return denied
3800 limit = max(1, min(int(request.query_params.get("limit", "50")), 200))
3801 errors_only = request.query_params.get("errors_only", "").strip().lower() in {"1", "true", "yes"}
3802 return JSONResponse({
3803 "total_requests": _traces.count,
3804 "summary": _traces.summary(),
3805 "items": _traces.recent(limit=limit, errors_only=errors_only),
3806 })
3807
3808 async def handle_trace_detail(request: Request) -> JSONResponse:
3809 denied = _admin_auth_failure(request)

Callers

nothing calls this directly

Calls 4

_admin_auth_failureFunction · 0.85
getMethod · 0.45
summaryMethod · 0.45
recentMethod · 0.45

Tested by

no test coverage detected