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 logging support to generated clients #1577

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Nov 1, 2024

This change instruments all generated clients with logging. In order to reduce the amount of codegen this would take I refactored some common logic about executing the request and parsing the response into a common helper. This change should reduce LoC for generated clients as a nice side-effect.

@codyoss codyoss added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 1, 2024
@codyoss codyoss requested review from a team as code owners November 1, 2024 20:31
@codyoss
Copy link
Member Author

codyoss commented Nov 1, 2024

Requires googleapis/gax-go#380 and googleapis/google-api-go-client#2854 be rolled out to all clients first

@codyoss codyoss force-pushed the slog-logging branch 2 times, most recently from cacc368 to b357120 Compare November 1, 2024 20:38
@codyoss codyoss force-pushed the slog-logging branch 7 times, most recently from 197ad23 to 87dcdfc Compare December 4, 2024 17:17
@codyoss codyoss removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 4, 2024
codyoss added a commit to codyoss/google-cloud-go that referenced this pull request Dec 4, 2024
This is required to land the logging generated changes staged in
googleapis/gapic-generator-go#1577.
internal/gengapic/gengapic.go Show resolved Hide resolved
internal/gengapic/gengrpc.go Show resolved Hide resolved
internal/gengapic/genrest.go Show resolved Hide resolved
@codyoss codyoss requested a review from quartzmo December 4, 2024 20:41
@codyoss codyoss merged commit ae37381 into googleapis:main Dec 6, 2024
7 checks passed
@codyoss codyoss deleted the slog-logging branch December 6, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants