MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / initMetrics

Function initMetrics

pkg/events/observability.go:42–45  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

40)
41
42func initMetrics(name string) {
43 publishes.WithLabelValues(name).Add(0)
44 channelDropped.WithLabelValues(name).Add(0)
45}
46
47func init() {
48 metrics.MustRegister(publishes, channelDropped)

Callers 1

defineSkipFunction · 0.85

Calls 2

AddMethod · 0.65
WithLabelValuesMethod · 0.45

Tested by

no test coverage detected