MCPcopy Index your code
hub / github.com/github/copilot-sdk / _log_request_timing

Function _log_request_timing

python/copilot/_jsonrpc.py:42–62  ·  view source on GitHub ↗
(
    level: int,
    start: float,
    method: str,
    request_id: str,
    status: str,
    *,
    exc_info: bool = False,
)

Source from the content-addressed store, hash-verified

40
41
42def _log_request_timing(
43 level: int,
44 start: float,
45 method: str,
46 request_id: str,
47 status: str,
48 *,
49 exc_info: bool = False,
50) -> None:
51 if logger.isEnabledFor(level):
52 logger.log(
53 level,
54 "JsonRpcClient.request JSON-RPC request finished",
55 extra={
56 "elapsed_ms": elapsed_ms(start),
57 "method": method,
58 "request_id": request_id,
59 "status": status,
60 },
61 exc_info=exc_info,
62 )
63
64
65class JsonRpcClient:

Callers 1

requestMethod · 0.85

Calls 2

elapsed_msFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…