Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

resource detection for 2nd gen of Cloud Functions works incorrectly #989

@minherz

Description

@minherz

The current version of the library (3.10.0) incorrect detects resource as Cloud Run when the code runs on the 2nd generation of the Cloud Functions.

The problem is that in 2nd generation the environment has full set of Cloud Run environment variables which does not happened when running 1st generation of the Cloud Functions. As a result, the code detects Cloud Run before it reaches to if that detects Cloud Functions.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/java-logging API.lang: javaIssues specific to Java.priority: p2Moderately-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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions