Skip to content

fix: In Client-side metrics makes sure that the right views get created for the right metrics #1590

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

Merged
merged 8 commits into from
Jul 9, 2025

Conversation

danieljbruce
Copy link
Contributor

Description

This is a one line fix. If the aggregation ends with 'latencies' then the explicit bucket histogram should be used, not the sum histogram and vice versa.

@danieljbruce danieljbruce requested review from a team as code owners April 17, 2025 13:55
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigtable Issues related to the googleapis/nodejs-bigtable API. labels Apr 17, 2025
@danieljbruce danieljbruce added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 17, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 17, 2025
@@ -97,7 +97,7 @@ function createInstruments(exporter: PushMetricExporter): MetricsInstruments {
new View({
instrumentName: name,
name,
aggregation: name.endsWith('latencies')
aggregation: !name.endsWith('latencies')

Choose a reason for hiding this comment

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

should there be a test verifying this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I don't want that to block a change to fix something we currently have in production though so I have put this in a backlog bug. Verifying the views got created is fairly non-trivial.

daniel-sanche
daniel-sanche previously approved these changes Jul 7, 2025
Copy link

@daniel-sanche daniel-sanche left a comment

Choose a reason for hiding this comment

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

LGTM, but consider a test so this can't slip through in the future

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: xs Pull request size is extra small. labels Jul 7, 2025
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: xl Pull request size is extra large. labels Jul 9, 2025
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: xs Pull request size is extra small. labels Jul 9, 2025
@danieljbruce danieljbruce merged commit 6cb7cdd into main Jul 9, 2025
20 of 23 checks passed
@danieljbruce danieljbruce deleted the 359913994-views-change-2 branch July 9, 2025 16:56
@danieljbruce danieljbruce mentioned this pull request Aug 7, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/nodejs-bigtable API. size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants