Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: serviceContext detection for Cloud Function and Cloud Run #1544

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeanregisser
Copy link

@jeanregisser jeanregisser commented Nov 28, 2024

I noticed the detected serviceContext was empty for a deployed gen2 Cloud Function.
Turns out the FUNCTION_NAME env var is not set anymore.

K_SERVICE and K_REVISION env vars are recommended to be used for both Cloud Function and Cloud Run.

Looks like this was missed in #436

@jeanregisser jeanregisser requested review from a team as code owners November 28, 2024 13:09
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Nov 28, 2024
@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/nodejs-logging API. label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/nodejs-logging API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants