Skip to content

Conversation

cody-littley
Copy link
Contributor

Why are these changes needed?

Adds metrics to the dipserser.

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 :(

Signed-off-by: Cody Littley <[email protected]>
@cody-littley cody-littley requested a review from ian-shim December 9, 2024 18:16
Signed-off-by: Cody Littley <[email protected]>
sig, err := d.sendChunks(ctx, client, batch)
if err == nil {

sendChunksFinished := time.Now()
d.metrics.reportSendChunksLatency(sendChunksFinished.Sub(sendChunksStart))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should report the latency for failed requests as well

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 (this location and elsewhere)

Signed-off-by: Cody Littley <[email protected]>
@cody-littley cody-littley merged commit cc34304 into Layr-Labs:master Dec 9, 2024
6 checks passed
@cody-littley cody-littley deleted the dispatcher-metrics branch December 9, 2024 20:35
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