Repository navigation
opentelemetry-resourcedetector-gcp: populate cloud.resource_id and detect Cloud Run Jobs - #5352
Merged
Merged
Conversation
Pull request dashboard statusWaiting on reviewers · refreshed 2026-11-18 02:51 UTC Review the latest changes. Status above doesn't look right?
|
…tect Cloud Run Jobs Add Cloud Run Jobs resource detection and populate the incubating cloud.resource_id attribute on Cloud Run services, Cloud Run jobs, and Cloud Functions when project ID, region, and service/job/function name are non-empty.
dashpole
force-pushed
the
gcp-cloud-resource-id
branch
from
November 17, 2026 21:51
1a4b209 to
9469a3c
Compare
aabmass
approved these changes
Nov 19, 2026
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add Cloud Run Jobs detection (
CLOUD_RUN_JOB,CLOUD_RUN_EXECUTION,CLOUD_RUN_TASK_INDEX) and populate the incubatingcloud.resource_idresource attribute for Cloud Run services, Cloud Run jobs, and Cloud Functions inopentelemetry-resourcedetector-gcp://run.googleapis.com/projects/{project_id}/locations/{region}/services/{name}//run.googleapis.com/projects/{project_id}/locations/{region}/jobs/{name}//cloudfunctions.googleapis.com/projects/{project_id}/locations/{region}/functions/{name}cloud.resource_idis omitted on GCE, GKE, and App Engine, or when any ofprojectId,cloud.region, orfaas.nameis empty. This alignsopentelemetry-resourcedetector-gcpwith the Go detector implementation in open-telemetry/opentelemetry-go-contrib#10258 and the Java detector PR in open-telemetry/opentelemetry-java-contrib#3229.Type of change
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.
tox -e precommittox -e typecheck