Skip to content

Commit 833d86f

Browse files
committed
Try not sending the resource_container
1 parent b67b9b0 commit 833d86f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

opentelemetry-exporter-gcp-logging/src/opentelemetry/exporter/cloud_logging/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,13 @@ def _get_monitored_resource(
229229
cloud_resource_id,
230230
)
231231
):
232-
project_id = match.group("project_id")
233232
location = match.group("location")
234233
agent_engine_id = match.group("agent_engine_id")
235234
# https://cloud.google.com/monitoring/api/resources#tag_aiplatform.googleapis.com/ReasoningEngine
236235
return MonitoredResource(
237236
type="aiplatform.googleapis.com/ReasoningEngine",
238237
labels={
239-
"resource_container": project_id,
238+
# Intentionally omit the project ID
240239
"location": location,
241240
"reasoning_engine_id": agent_engine_id,
242241
},

opentelemetry-exporter-gcp-logging/tests/__snapshots__/test_cloud_logging/test_agent_engine_monitored_resources[client].json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"resource": {
77
"labels": {
88
"location": "europe-west3",
9-
"reasoning_engine_id": "8477639270431981568",
10-
"resource_container": "some-project123-321"
9+
"reasoning_engine_id": "8477639270431981568"
1110
},
1211
"type": "aiplatform.googleapis.com/ReasoningEngine"
1312
},

0 commit comments

Comments
 (0)