Skip to content

Commit

Permalink
Update internal/metrics/metrics.go
Browse files Browse the repository at this point in the history
Co-authored-by: saltiyazan <[email protected]>
  • Loading branch information
kayra1 and saltiyazan authored May 31, 2024
1 parent c3f7e1d commit 93ea68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type PrometheusMetrics struct {
RequestsDuration prometheus.HistogramVec
}

// NewMetricsSubsystem returns the metrics endpoint HTTP handler and the Prometheus metrics for the server and middleware.
// NewMetricsSubsystem returns the metrics endpoint HTTP handler and the Prometheus metrics collectors for the server and middleware.
func NewMetricsSubsystem(db *certdb.CertificateRequestsRepository) *PrometheusMetrics {
metricsBackend := newPrometheusMetrics()
metricsBackend.Handler = promhttp.HandlerFor(metricsBackend.registry, promhttp.HandlerOpts{})
Expand Down

0 comments on commit 93ea68d

Please sign in to comment.