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

    Function getGcpExporters

    • Returns OTel processors and readers configured for export to Google Cloud.

      Sends traces, metrics, and logs via OTLP over HTTP to telemetry.googleapis.com. On Agent Runtime (GOOGLE_CLOUD_AGENT_ENGINE_ID set) the metric reader is request-driven and starts no background timer. Custom servers calling getGcpExporters with maybeSetOtelProviders on Agent Runtime must wrap each request with agentRuntimeRequestHooks to drive the metric reader and flush the span and log processors; without those hooks, the reader never collects except on forceFlush() or shutdown().

      Parameters

      Returns Promise<OTelHooks>

      OTelHooks containing configured processors and readers.