From 5634fe6f3eb5dce7abf6cdcde51f84b6aef2e375 Mon Sep 17 00:00:00 2001 From: Jian Xiao <99709935+jianoaix@users.noreply.github.com> Date: Fri, 23 Aug 2024 20:25:29 -0700 Subject: [PATCH] Fix stringification of uint8 (#723) --- disperser/batcher/metrics.go | 2 +- disperser/encoder/metrics.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/disperser/batcher/metrics.go b/disperser/batcher/metrics.go index c6368abcd5..dee4d256d6 100644 --- a/disperser/batcher/metrics.go +++ b/disperser/batcher/metrics.go @@ -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) { diff --git a/disperser/encoder/metrics.go b/disperser/encoder/metrics.go index 4a63050c3e..ad573bd7b9 100644 --- a/disperser/encoder/metrics.go +++ b/disperser/encoder/metrics.go @@ -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 ),