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

Fix bug where grpc self-observability metrics were not added #900

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Oct 9, 2024

In #885, I only added grpc observability metrics when insecure = true. This passed our tests that use a local, fake grpc server, but didn't work for the general case.

It turns out that the metrics were actually coming from the client library, which enables opencensus metrics by default. After the OC bridge was removed, those metrics disappeared.

This PR adds grpc metrics for the non-insecure case.

TESTED=checked that the e2e test project contains grpc self-obs metrics

@dashpole dashpole requested a review from a team as a code owner October 9, 2024 18:49
@dashpole
Copy link
Contributor Author

dashpole commented Oct 9, 2024

@ridwanmsharif

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.66%. Comparing base (4caace7) to head (dddd2db).
Report is 49 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #900      +/-   ##
==========================================
+ Coverage   61.03%   63.66%   +2.62%     
==========================================
  Files          56       57       +1     
  Lines        5903     6066     +163     
==========================================
+ Hits         3603     3862     +259     
+ Misses       2143     2042     -101     
- Partials      157      162       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

Any way to test this?

@dashpole
Copy link
Contributor Author

dashpole commented Oct 9, 2024

The integration test now exports self-observability metrics using our SDK exporter. I checked in the e2e test project to see that the metrics were present.

@dashpole dashpole merged commit 5cd127b into GoogleCloudPlatform:main Oct 10, 2024
34 checks passed
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.

3 participants