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

Add metrics to encoder v2 #1080

Merged
merged 9 commits into from
Jan 8, 2025
Merged

Add metrics to encoder v2 #1080

merged 9 commits into from
Jan 8, 2025

Conversation

dmanc
Copy link
Contributor

@dmanc dmanc commented Jan 8, 2025

Why are these changes needed?

Brings metrics changes made from V1 encoder to V2 encoder. In order to support certain metrics from V1 we need to send the blob size as part of the request.

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@dmanc dmanc changed the title Add grpc metrics to encoder v2 Add metrics to encoder v2 Jan 8, 2025
@dmanc dmanc marked this pull request as ready for review January 8, 2025 07:01
@dmanc dmanc requested review from pschork and jianoaix January 8, 2025 07:01
close func()

runningRequests chan struct{}
requestPool chan struct{}
requestPool chan blobRequest
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can we rename "pool" to "queue" (e.g. queueingRequests, and ServerConfig.RequestQueueSize) so it's consistent with the rest parts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done V2 code will use new request queue flag. Leaving the V1 server code as is though to prevent having to update the config values.

@dmanc dmanc force-pushed the encoder-v2-metrics branch from c279b84 to 5c571ac Compare January 8, 2025 22:51
@dmanc dmanc merged commit 9267dc2 into Layr-Labs:master Jan 8, 2025
8 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.

2 participants