MCPcopy Create free account
hub / github.com/Effect-TS/effect / traced

Function traced

packages/effect/src/http/HttpEffect.ts:159–166  ·  view source on GitHub ↗
(frame: RequestFrame)

Source from the content-addressed store, hash-verified

157
158 // Apply tracing lazily so disabled requests can use the single-frame path.
159 const traced = (frame: RequestFrame) =>
160 tracer(
161 withMiddleware(frame) as Effect.Effect<
162 HttpServerResponse,
163 E | EH | HttpServerError,
164 HttpServerRequest | R | RH
165 >
166 )
167
168 // Handle untraced requests without middleware in one continuation frame.
169 // Effectful writes use `finishAfter` to restore state and close the scope.

Callers 1

toHandledFunction · 0.70

Calls 1

withMiddlewareFunction · 0.85

Tested by

no test coverage detected