MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / requestPath

Function requestPath

apps/cloud/src/observability/error-logging.ts:50–56  ·  view source on GitHub ↗
(request: HttpServerRequest.HttpServerRequest)

Source from the content-addressed store, hash-verified

48};
49
50const requestPath = (request: HttpServerRequest.HttpServerRequest): string => {
51 if (URL.canParse(request.url, "http://executor.local")) {
52 return new URL(request.url, "http://executor.local").pathname;
53 }
54
55 return request.url.split("?")[0] ?? request.url;
56};
57
58export const logApiErrorCause = (
59 request: HttpServerRequest.HttpServerRequest,

Callers 1

logApiErrorCauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected