Experimental
Hooks a server calls at the start and end of every request, so telemetry is exported while the request still holds the CPU.
Neither hook throws, and AgentRuntimeRequestHooks.onRequestEnd never rejects: a telemetry failure never breaks the request.
(Experimental, subject to change)
Call when the handler ends the response, before the response completes. Resolves once metrics are drained and spans and logs are flushed.
Call when a request arrives.
Hooks a server calls at the start and end of every request, so telemetry is exported while the request still holds the CPU.
Neither hook throws, and AgentRuntimeRequestHooks.onRequestEnd never rejects: a telemetry failure never breaks the request.
(Experimental, subject to change)