-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
api: loggingIssues related to the googleapis/nodejs-logging API.Issues related to the googleapis/nodejs-logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- OS: Container (base node:24-slim)
- Node.js version: 24
- npm version: 11.5.2
@google-cloud/loggingversion: 11.2.0
Steps to reproduce
- Create job w/ code snippet
const {Logging} = require('@google-cloud/logging');
const logging = new Logging();
await logging.setDetectedResource();
console.log(logging.detectedResource);- Deploy to Cloud Run Jobs:
gcloud run jobs deploy logging-test --source . && gcloud run jobs execute logging-test- Inspect the logs
// Expected
{
type: "cloud_run_job",
labels: {
instance_id: "deadbeef",
zone: "us-central1-1",
},
}// Actual
{
type: "gce_instance",
labels: {
instance_id: "deadbeef",
zone: "us-central1-1",
},
}This is basically a follow up to #959
Metadata
Metadata
Assignees
Labels
api: loggingIssues related to the googleapis/nodejs-logging API.Issues related to the googleapis/nodejs-logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.