Skip to content

feat: Initial timed stream implementation for application latencies #1639

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danieljbruce
Copy link
Contributor

Description

Adds a timed stream object. The intent of this PR is to decide on an implementation for the timed stream so that the timed stream can then be used as a tool for measuring application latencies. Tests should accurately reflect what the timed stream should and should not do.

Impact

Basically provides the right plumbing for application latencies measurement. Also allows the team to have a medium where we can do test driven development and discuss and agree on what requirements for application latencies should be met.

Testing

Unit tests for the timed stream are added to illustrate what the timed stream should do. This ensures the measurements captured by the timed stream will meet the needs required in order to measure application latencies.

@danieljbruce danieljbruce requested review from a team as code owners July 10, 2025 20:56
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/nodejs-bigtable API. labels Jul 10, 2025
const totalMilliseconds = timedStream.getTotalDurationMs();
console.log(totalMilliseconds);
// totalMilliseconds should be around 10 seconds, 1 per row
assert(totalMilliseconds > 9000);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When you check out this code locally this assert fails which is a problem.

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: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant