Skip to content

feat(logging): cloud run and functions resource autodetection#3909

Merged
gcf-merge-on-green[bot] merged 10 commits intomasterfrom
envCloudRun
Apr 14, 2021
Merged

feat(logging): cloud run and functions resource autodetection#3909
gcf-merge-on-green[bot] merged 10 commits intomasterfrom
envCloudRun

Conversation

@freelerobot
Copy link
Copy Markdown
Contributor

@freelerobot freelerobot commented Apr 9, 2021

Fixes: #3486

Changes:

  • cloud run has correct resource labels and type
  • functions has correct resource labels and type
  • e2e environment tests covered here

@freelerobot freelerobot self-assigned this Apr 9, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 9, 2021
@product-auto-label product-auto-label Bot added the api: logging Issues related to the Cloud Logging API. label Apr 9, 2021
@freelerobot freelerobot changed the title feat(logging): cloud run resource autodetection feat(logging): cloud run and functions resource autodetection Apr 9, 2021
@freelerobot freelerobot marked this pull request as ready for review April 9, 2021 21:56
@freelerobot freelerobot requested review from a team April 9, 2021 21:56
Copy link
Copy Markdown

@simonz130 simonz130 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! Thank you!

Comment thread logging/logging.go
Comment thread logging/logging.go
Comment thread logging/logging.go
Comment thread logging/logging.go
Comment thread logging/logging.go
Comment thread logging/logging.go Outdated
Comment thread logging/logging.go
@freelerobot
Copy link
Copy Markdown
Contributor Author

Ready for another look @simonz130 or @daniel-sanche when you have time
@daniel-sanche I realize the library memoizes already. detectResource is run once upon logger initialization

Copy link
Copy Markdown
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@freelerobot freelerobot added priority: p2 Moderately-important priority. Fix may not be included in next release. automerge Merge the pull request once unit tests and other checks pass. labels Apr 13, 2021
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 Cloud Logging API. cla: yes This human has signed the Contributor License Agreement. priority: p2 Moderately-important priority. Fix may not be included in next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

logging: resource autodetection for CloudRun

4 participants