From 734ccf93b875cc376fb396e0c3082f5a8e20634e Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Mon, 28 Oct 2024 12:59:29 -0700 Subject: [PATCH] feat(da): lint --- sequencing/metrics.go | 52 +++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/sequencing/metrics.go b/sequencing/metrics.go index 3707705..27212f5 100644 --- a/sequencing/metrics.go +++ b/sequencing/metrics.go @@ -59,32 +59,32 @@ func PrometheusMetrics(labelsAndValues ...string) (*Metrics, error) { labels = append(labels, labelsAndValues[i]) } return &Metrics{ - GasPrice: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ - Subsystem: MetricsSubsystem, - Name: "gas_price", - Help: "The gas price of DA.", - }, labels).With(labelsAndValues...), - LastBlobSize: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ - Subsystem: MetricsSubsystem, - Name: "last_blob_size", - Help: "The size in bytes of the last DA blob.", - }, labels).With(labelsAndValues...), - TransactionStatus: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ - Subsystem: MetricsSubsystem, - Name: "transaction_status", - Help: "Count of transaction statuses for DA submissions", - }, labels).With(labelsAndValues...), - NumPendingBlocks: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ - Subsystem: MetricsSubsystem, - Name: "num_pending_blocks", - Help: "The number of pending blocks for DA submission.", - }, labels).With(labelsAndValues...), - IncludedBlockHeight: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ - Subsystem: MetricsSubsystem, - Name: "included_block_height", - Help: "The last DA included block height.", - }, labels).With(labelsAndValues...), -}, nil + GasPrice: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ + Subsystem: MetricsSubsystem, + Name: "gas_price", + Help: "The gas price of DA.", + }, labels).With(labelsAndValues...), + LastBlobSize: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ + Subsystem: MetricsSubsystem, + Name: "last_blob_size", + Help: "The size in bytes of the last DA blob.", + }, labels).With(labelsAndValues...), + TransactionStatus: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ + Subsystem: MetricsSubsystem, + Name: "transaction_status", + Help: "Count of transaction statuses for DA submissions", + }, labels).With(labelsAndValues...), + NumPendingBlocks: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ + Subsystem: MetricsSubsystem, + Name: "num_pending_blocks", + Help: "The number of pending blocks for DA submission.", + }, labels).With(labelsAndValues...), + IncludedBlockHeight: prometheus.NewGaugeFrom(stdprometheus.GaugeOpts{ + Subsystem: MetricsSubsystem, + Name: "included_block_height", + Help: "The last DA included block height.", + }, labels).With(labelsAndValues...), + }, nil } // NopMetrics returns no-op Metrics.