From bfa5fe2b1354e9494d1eb96757ffe0cb490c5773 Mon Sep 17 00:00:00 2001 From: Samuel Hitz Date: Fri, 20 Oct 2023 09:00:08 +0200 Subject: [PATCH] snet/metrics: use registry in snet metrics (#4423) The options were not correctly passed in to NewSCMPErrors in snet/metrics. This commit fixes that. --- pkg/snet/metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/snet/metrics/metrics.go b/pkg/snet/metrics/metrics.go index 3df7ac3fc5..d70fe5b009 100644 --- a/pkg/snet/metrics/metrics.go +++ b/pkg/snet/metrics/metrics.go @@ -84,7 +84,7 @@ func NewSCIONPacketConnMetrics(opts ...Option) snet.SCIONPacketConnMetrics { ParseErrors: metrics.NewPromCounter(auto.NewCounterVec(prometheus.CounterOpts{ Name: "lib_snet_parse_error_total", Help: "Total number of parse errors"}, []string{})), - SCMPErrors: NewSCMPErrors(), + SCMPErrors: NewSCMPErrors(opts...), } }