kinetex - v1.0.0-rc.1
    Preparing search index...

    Function createTimingHook

    • Hook: measure request timing and attach to response meta.

      Returns { beforeRequest: BeforeRequestHook; afterResponse: AfterResponseHook }

      An object containing:

      • beforeRequest: Records the start timestamp in the context metadata.
      • afterResponse: Computes elapsed time and sets durationMs in context metadata.
      • beforeRequest: BeforeRequestHook

        Records the start timestamp in the context metadata.

      • afterResponse: AfterResponseHook

        Computes elapsed time and sets durationMs in context metadata.