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

feat: Add Cloud Run Jobs support #1574

Merged
merged 8 commits into from
Apr 24, 2024
Merged

feat: Add Cloud Run Jobs support #1574

merged 8 commits into from
Apr 24, 2024

Conversation

cindy-peng
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #1514 ☕️

If you write sample code, please follow the samples format.

@cindy-peng cindy-peng requested review from a team as code owners April 2, 2024 16:29
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: logging Issues related to the googleapis/java-logging API. size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels Apr 2, 2024
@cindy-peng
Copy link
Contributor Author

Put this PR on hold due to code freeze. Will resume merging and releasing once feeze is over.

enhancers.add(
new LabelLoggingEnhancer(
CLOUD_RUN_JOB_LABEL_PREFIX,
ImmutableList.of(Label.CloudRunJobExecutionName, Label.CloudRunJobTaskIndex)));

Choose a reason for hiding this comment

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

According to this (https://cloud.google.com/logging/docs/api/platform-logs#cloud_run) you're missing a label for task attempt.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Added cloud run task attempt label into enhancer.

Copy link

@gkevinzheng gkevinzheng left a comment

Choose a reason for hiding this comment

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

LGTM

@cindy-peng
Copy link
Contributor Author

Merging this PR for now since customers are blocked on this.

@cindy-peng cindy-peng merged commit 1dd64d0 into main Apr 24, 2024
23 checks passed
@cindy-peng cindy-peng deleted the cindy/cloudrun branch April 24, 2024 00:12
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/java-logging API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloud Run Jobs produce logs with incorrect resource type (not supported?)
2 participants