diff --git a/tests/unit/vertex_adk/test_agent_engine_templates_adk.py b/tests/unit/vertex_adk/test_agent_engine_templates_adk.py index e7e843e05c..87b198e8e7 100644 --- a/tests/unit/vertex_adk/test_agent_engine_templates_adk.py +++ b/tests/unit/vertex_adk/test_agent_engine_templates_adk.py @@ -771,6 +771,7 @@ def test_tracing_setup( "telemetry.sdk.version": "1.36.0", "gcp.project_id": "test-project", "cloud.account.id": "test-project", + "cloud.provider": "gcp", "cloud.platform": "gcp.agent_engine", "service.name": "test_agent_id", "cloud.resource_id": "//aiplatform.googleapis.com/projects/test-project/locations/us-central1/reasoningEngines/test_agent_id", diff --git a/tests/unit/vertex_adk/test_reasoning_engine_templates_adk.py b/tests/unit/vertex_adk/test_reasoning_engine_templates_adk.py index e06be088a9..5f5c004f2e 100644 --- a/tests/unit/vertex_adk/test_reasoning_engine_templates_adk.py +++ b/tests/unit/vertex_adk/test_reasoning_engine_templates_adk.py @@ -713,6 +713,7 @@ def test_tracing_setup( "telemetry.sdk.version": "1.36.0", "gcp.project_id": "test-project", "cloud.account.id": "test-project", + "cloud.provider": "gcp", "cloud.platform": "gcp.agent_engine", "service.name": "test_agent_id", "cloud.resource_id": "//aiplatform.googleapis.com/projects/test-project/locations/us-central1/reasoningEngines/test_agent_id", diff --git a/vertexai/agent_engines/templates/adk.py b/vertexai/agent_engines/templates/adk.py index f6276a753f..122f027466 100644 --- a/vertexai/agent_engines/templates/adk.py +++ b/vertexai/agent_engines/templates/adk.py @@ -348,6 +348,7 @@ def _detect_cloud_resource_id(project_id: str) -> Optional[str]: attributes={ "gcp.project_id": project_id, "cloud.account.id": project_id, + "cloud.provider": "gcp", "cloud.platform": "gcp.agent_engine", "service.name": os.getenv("GOOGLE_CLOUD_AGENT_ENGINE_ID", ""), "service.instance.id": f"{uuid.uuid4().hex}-{os.getpid()}", diff --git a/vertexai/preview/reasoning_engines/templates/adk.py b/vertexai/preview/reasoning_engines/templates/adk.py index 3145cc268d..36e8bbe95d 100644 --- a/vertexai/preview/reasoning_engines/templates/adk.py +++ b/vertexai/preview/reasoning_engines/templates/adk.py @@ -350,6 +350,7 @@ def _detect_cloud_resource_id(project_id: str) -> Optional[str]: attributes={ "gcp.project_id": project_id, "cloud.account.id": project_id, + "cloud.provider": "gcp", "cloud.platform": "gcp.agent_engine", "service.name": os.getenv("GOOGLE_CLOUD_AGENT_ENGINE_ID", ""), "service.instance.id": f"{uuid.uuid4().hex}-{os.getpid()}",