Skip to content

Extend @opentelemetry/resource-detector-gcp with support for Google Cloud Run #2933

@Silthus

Description

@Silthus

Is your feature request related to a problem? Please describe

Right now the GCP resource detection for NodeJS does not properly detect running in a Google Cloud Run instance.
For now it is required to set the required attributes manually or use the otel-collector sidecar, which sets the correct faas and host.type attributes for Google Cloud Run.

Describe the solution you'd like to see

It would be great if the @opentelemetry/resource-detector-gcp would detect and set the correct resource attributes for Google Cloud Run to the same as the otel-collector/processor/resource_detection/gcp.

Additional context

The environment variables from the Cloud Run runtime contract can be used to detect and extract the running Cloud Run instance.

See here for the relevant env variables used by the Go GCP SDK.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions