Skip to content

Commit

Permalink
Fix stringification of uint8 (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Aug 24, 2024
1 parent f1b5d98 commit 5634fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion disperser/batcher/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (e *EncodingStreamerMetrics) UpdateEncodedBlobs(count int, size uint64) {
}

func (e *EncodingStreamerMetrics) ObserveEncodingLatency(state string, quorumId core.QuorumID, blobSize int, latencyMs float64) {
e.BlobEncodingLatency.WithLabelValues(state, string(quorumId), blobSizeBucket(blobSize)).Observe(latencyMs)
e.BlobEncodingLatency.WithLabelValues(state, fmt.Sprintf("%d", quorumId), blobSizeBucket(blobSize)).Observe(latencyMs)
}

func (t *TxnManagerMetrics) ObserveLatency(stage string, latencyMs float64) {
Expand Down
2 changes: 1 addition & 1 deletion disperser/encoder/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func NewMetrics(httpPort string, logger logging.Logger) *Metrics {
prometheus.CounterOpts{
Namespace: "eigenda_encoder",
Name: "blob_size_total",
Help: "the size in bytes of total blob request at server side per state",
Help: "the size in bytes of total blob requests at server side per state",
},
[]string{"state"}, // state is either success, ratelimited, canceled, or failure
),
Expand Down

0 comments on commit 5634fe6

Please sign in to comment.