interface AfterSuccessHook {
    afterSuccess: (
        hookCtx: HookContext,
        response: Response,
    ) => Awaitable<Response>;
}

Properties

Properties

afterSuccess: (hookCtx: HookContext, response: Response) => Awaitable<Response>

A hook that is called after the SDK receives a response. The hook can introduce instrumentation code such as logging, tracing and metrics or modify the response before it is handled or throw an error to stop the response from being handled.