Skip to content

Auto-detection when used on Cloud Run (managed) #959

@romaincointepas

Description

@romaincointepas

Could Cloud Run (managed) be auto-detected in https://github.com/googleapis/nodejs-logging/blob/master/src/metadata.ts#L147-L164 the same way it's already being done with Cloud Functions, Compute, etc.?

This seems to work:

{
  type: 'cloud_run_revision',
  labels: {
    configuration_name: process.env.K_CONFIGURATION,
    revision_name: process.env.K_REVISION,
    service_name: process.env.K_SERVICE
  }
}

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/nodejs-logging API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions