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: Enable Auth Observability Metrics #509

Merged
merged 25 commits into from
May 2, 2024
Merged

feat: Enable Auth Observability Metrics #509

merged 25 commits into from
May 2, 2024

Conversation

yash30201
Copy link
Contributor

@yash30201 yash30201 commented Dec 19, 2023

go/php-auth-metrics-design-doc

Status

  • Verified that metrics are working as intended for service api usage request and token endpoint credential requests except OAuth2 endpoint as there's an actionable pending from OAuth2 side.
  • Confirmed with Auth SDK team that we can go ahead with the release and needn't wait for OAuth team's actionable.

Copy link
Contributor Author

@yash30201 yash30201 left a comment

Choose a reason for hiding this comment

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

Thoughts for reviewers.

src/Credentials/ExternalAccountCredentials.php Outdated Show resolved Hide resolved
src/MetricsTrait.php Show resolved Hide resolved
@yash30201 yash30201 marked this pull request as ready for review December 19, 2023 13:13
@yash30201 yash30201 requested a review from a team as a code owner December 19, 2023 13:13
Copy link
Contributor

@bshaffer bshaffer left a comment

Choose a reason for hiding this comment

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

I've made some suggestions in this review, but there were some more involved changes that I'd like to see (namely, simplifying MetricsTrait) that I have illustrated in #512

src/MetricsTrait.php Outdated Show resolved Hide resolved
src/MetricsTrait.php Outdated Show resolved Hide resolved
src/UpdateMetadataTrait.php Outdated Show resolved Hide resolved
src/MetricsTrait.php Outdated Show resolved Hide resolved
src/Credentials/ServiceAccountCredentials.php Outdated Show resolved Hide resolved
src/Credentials/GCECredentials.php Outdated Show resolved Hide resolved
src/Credentials/GCECredentials.php Outdated Show resolved Hide resolved
src/Credentials/ExternalAccountCredentials.php Outdated Show resolved Hide resolved
src/MetricsTrait.php Outdated Show resolved Hide resolved
src/UpdateMetadataTrait.php Show resolved Hide resolved
@bshaffer bshaffer added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 23, 2024
@bshaffer
Copy link
Contributor

Added "Do Not Merge" as we are waiting on @yash30201 to confirm that the metrics are available on the backend as expected.

@yash30201
Copy link
Contributor Author

yash30201 commented Feb 29, 2024

Confirmed that metrics are available for Service API token usage on backend and using this PR's version of google-auth-library-php populates the metrics table properly. 🚀

There's still some problem on backend with metrics availability in token endpoint request to oauth2.googleapis.com endpoint. Hence awaiting it's resolution.

cc: @bshaffer

@yash30201 yash30201 removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 13, 2024
src/MetricsTrait.php Outdated Show resolved Hide resolved
src/Credentials/GCECredentials.php Outdated Show resolved Hide resolved
src/MetricsTrait.php Outdated Show resolved Hide resolved
tests/MetricsTraitTest.php Outdated Show resolved Hide resolved
tests/ObservabilityMetricsTest.php Outdated Show resolved Hide resolved
tests/MetricsTraitTest.php Outdated Show resolved Hide resolved
@bshaffer bshaffer enabled auto-merge (squash) May 2, 2024 15:06
@bshaffer bshaffer merged commit 6495f31 into main May 2, 2024
11 checks passed
@bshaffer bshaffer deleted the metrics-with-trait branch May 2, 2024 15:29
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.

None yet

2 participants