ADK for TypeScript: API Reference
    Preparing search index...

    Function agentRuntimeRequestHooks

    • Experimental

      Builds the request hooks that drive export for the given processors and readers on a runtime that throttles the CPU between requests.

      Each request start and end drives every request-driven metric reader in otelHooks.metricReaders. Each request end also force-flushes every span and log record processor in otelHooks. Other metric readers are left alone: flushing them would collect outside the request-driven reader's spacing rules.

      (Experimental, subject to change)

      Parameters

      Returns AgentRuntimeRequestHooks