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(compute/metadata): add debug logging #11078

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Nov 2, 2024

No description provided.

@codyoss codyoss requested a review from a team as a code owner November 2, 2024 18:37
@codyoss codyoss added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 2, 2024
@product-auto-label product-auto-label bot added the api: compute Issues related to the Compute Engine API. label Nov 2, 2024
@codyoss
Copy link
Member Author

codyoss commented Nov 2, 2024

Requires googleapis/gax-go#380

@codyoss codyoss force-pushed the computemetadata-logger branch 2 times, most recently from 4e2a467 to 93d2ad9 Compare December 12, 2024 15:31
@codyoss
Copy link
Member Author

codyoss commented Dec 12, 2024

Requires #11079

@codyoss codyoss force-pushed the computemetadata-logger branch 2 times, most recently from de98445 to 15ea68d Compare December 13, 2024 15:20
The compute/metadata module is used by too many other projects today
so we should not force the dependeny on gax from this specific module.
To tie into our client library logging we have the callers set up the
integration. Because of this decision we have to vendor in some of the
helper functions from gax into this project as well.
@codyoss codyoss force-pushed the computemetadata-logger branch from 15ea68d to c273786 Compare December 13, 2024 15:24
@codyoss codyoss removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 13, 2024
Copy link
Member

@quartzmo quartzmo left a comment

Choose a reason for hiding this comment

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

I think we should copy/adapt https://github.com/googleapis/gax-go/blob/main/v2/internallog/internallog_test.go here as well, to cover log.go.

compute/metadata/metadata.go Outdated Show resolved Hide resolved
compute/metadata/metadata.go Outdated Show resolved Hide resolved
@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label Dec 13, 2024
@codyoss codyoss requested a review from quartzmo December 13, 2024 17:17
@codyoss codyoss force-pushed the computemetadata-logger branch from ec376a4 to c82e30a Compare December 13, 2024 17:18
@gcf-merge-on-green gcf-merge-on-green bot merged commit a816814 into googleapis:main Dec 13, 2024
5 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Dec 13, 2024
@codyoss codyoss deleted the computemetadata-logger branch December 13, 2024 17:57
@release-please release-please bot mentioned this pull request Dec 13, 2024
gcf-merge-on-green bot pushed a commit that referenced this pull request Dec 13, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>compute: 1.31.0</summary>

## [1.31.0](https://togithub.com/googleapis/google-cloud-go/compare/compute/v1.30.0...compute/v1.31.0) (2024-12-13)


### Features

* **compute:** Update Compute Engine API to revision 20241201 ([#971](https://togithub.com/googleapis/google-cloud-go/issues/971)) ([#11274](https://togithub.com/googleapis/google-cloud-go/issues/11274)) ([1f49a23](https://togithub.com/googleapis/google-cloud-go/commit/1f49a23270a3614ead812524d94a87c39b403e76))
</details>

<details><summary>compute/metadata: 0.6.0</summary>

## [0.6.0](https://togithub.com/googleapis/google-cloud-go/compare/compute/metadata/v0.5.2...compute/metadata/v0.6.0) (2024-12-13)


### Features

* **compute/metadata:** Add debug logging ([#11078](https://togithub.com/googleapis/google-cloud-go/issues/11078)) ([a816814](https://togithub.com/googleapis/google-cloud-go/commit/a81681463906e4473570a2f426eb0dc2de64e53f))
</details>

<details><summary>config: 1.2.0</summary>

## [1.2.0](https://togithub.com/googleapis/google-cloud-go/compare/config/v1.1.2...config/v1.2.0) (2024-12-13)


### Features

* **config:** Added annotations ([1f49a23](https://togithub.com/googleapis/google-cloud-go/commit/1f49a23270a3614ead812524d94a87c39b403e76))


### Bug Fixes

* **config:** Changed field behavior for an existing field `service_account` in message `.google.cloud.config.v1.Deployment` ([1f49a23](https://togithub.com/googleapis/google-cloud-go/commit/1f49a23270a3614ead812524d94a87c39b403e76))
* **config:** Changed field behavior for an existing field `service_account` in message `.google.cloud.config.v1.Preview` ([1f49a23](https://togithub.com/googleapis/google-cloud-go/commit/1f49a23270a3614ead812524d94a87c39b403e76))


### Documentation

* **config:** Service Account is a required field ([1f49a23](https://togithub.com/googleapis/google-cloud-go/commit/1f49a23270a3614ead812524d94a87c39b403e76))
</details>

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: compute Issues related to the Compute Engine API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants