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

    Function getGcpResource

    • Builds the OTel resource describing a Google Cloud deployment.

      Applies layered precedence: common resource, Agent Runtime resource, OTel environment detector, GCP detector, and Agent Registry URN enrichment.

      Parameters

      • OptionalprojectId: string

        Optional project ID. Falls back to GOOGLE_CLOUD_PROJECT or ADC.

      Returns Promise<Resource>

      Detected Resource object.