From 51a0223ecd0affce4c0db861371695ecedec2ff7 Mon Sep 17 00:00:00 2001 From: Gergely Novak Date: Sat, 17 May 2025 11:50:02 +0200 Subject: [PATCH] Fix the deprecation comment format --- prometheus/prometheus.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/prometheus/prometheus.go b/prometheus/prometheus.go index 27324a7..fb1aa28 100644 --- a/prometheus/prometheus.go +++ b/prometheus/prometheus.go @@ -140,7 +140,8 @@ type Metric struct { Buckets []float64 } -// Prometheus contains the metrics gathered by the instance and its path +// Prometheus contains the metrics gathered by the instance and its path. +// // Deprecated: use echoprometheus package instead type Prometheus struct { reqCnt *prometheus.CounterVec @@ -175,7 +176,8 @@ type PushGateway struct { Job string } -// NewPrometheus generates a new set of metrics with a certain subsystem name +// NewPrometheus generates a new set of metrics with a certain subsystem name. +// // Deprecated: use echoprometheus package instead func NewPrometheus(subsystem string, skipper middleware.Skipper, customMetricsList ...[]*Metric) *Prometheus { var metricsList []*Metric @@ -301,7 +303,8 @@ func (p *Prometheus) startPushTicker() { }() } -// NewMetric associates prometheus.Collector based on Metric.Type +// NewMetric associates prometheus.Collector based on Metric.Type. +// // Deprecated: use echoprometheus package instead func NewMetric(m *Metric, subsystem string) prometheus.Collector { var metric prometheus.Collector