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

Update metrics #32

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Update metrics #32

merged 1 commit into from
Nov 15, 2023

Conversation

ian-shim
Copy link
Contributor

@ian-shim ian-shim commented Nov 15, 2023

Why are these changes needed?

Updating metrics in several places.

Batcher:

  • separate metrics for different blob status
  • removed failed batch count (now that failure is at the blob level, marking the whole batch as failed doesn't make sense)
  • fixed the # of signers

Attestation:

  • log total size of data dispersed to each operator
  • log when batcher receives a signature from an operator

Checks

  • I've made sure the lint is passing in this PR.
  • 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.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim force-pushed the update-metrics branch 3 times, most recently from 286fea1 to 360c3c9 Compare November 15, 2023 05:19
@ian-shim ian-shim marked this pull request as ready for review November 15, 2023 05:51
@@ -102,7 +102,6 @@ func (e *encodedBlobStore) PutEncodingResult(result *EncodingResult) error {
}
e.encoded[requestID] = result
delete(e.requested, requestID)
e.logger.Trace("[PutEncodingResult]", "referenceBlockNumber", result.ReferenceBlockNumber, "requestID", requestID, "encodedSize", e.encodedResultSize)
Copy link
Contributor

Choose a reason for hiding this comment

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

Reason for removing? Is it too noisy / not helpful?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I included this to debug an issue but it's very noisy

disperser/batcher/metrics.go Outdated Show resolved Hide resolved
@ian-shim ian-shim merged commit df86e36 into Layr-Labs:master Nov 15, 2023
3 of 4 checks passed
jianoaix pushed a commit that referenced this pull request Nov 15, 2023
teddyknox pushed a commit that referenced this pull request Nov 16, 2023
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