Skip to content

Commit

Permalink
snet/metrics: use registry in snet metrics (#4423)
Browse files Browse the repository at this point in the history
The options were not correctly passed in to NewSCMPErrors in snet/metrics. This commit fixes that.
  • Loading branch information
shitz committed Oct 20, 2023
1 parent 46b055a commit bfa5fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/snet/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...),
}
}

Expand Down

0 comments on commit bfa5fe2

Please sign in to comment.