resource detection for 2nd gen of Cloud Functions works incorrectly #989
Labels
api: logging
Issues related to the googleapis/java-logging API.
lang: java
Issues specific to Java.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
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.The text was updated successfully, but these errors were encountered: