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

Function registerRejectJoin

pkg/joinserver/observability.go:123–130  ·  view source on GitHub ↗
(ctx context.Context, req *ttnpb.JoinRequest, err error)

Source from the content-addressed store, hash-verified

121}
122
123func registerRejectJoin(ctx context.Context, req *ttnpb.JoinRequest, err error) {
124 events.Publish(evtRejectJoin.NewWithIdentifiersAndData(ctx, nil, err))
125 if ttnErr, ok := errors.From(err); ok {
126 jsMetrics.joinRejected.WithLabelValues(ctx, ttnErr.FullName()).Inc()
127 } else {
128 jsMetrics.joinRejected.WithLabelValues(ctx, unknown).Inc()
129 }
130}
131
132func registerDevNonceReuse(ctx context.Context, msg *ttnpb.JoinRequest) {
133 jsMetrics.devNonce.reuse.WithLabelValues(ctx, ttnpb.MACVersion_name[int32(msg.SelectedMacVersion)]).Inc()

Callers 1

HandleJoinMethod · 0.85

Calls 5

PublishFunction · 0.92
FromFunction · 0.92
FullNameMethod · 0.65
WithLabelValuesMethod · 0.45

Tested by

no test coverage detected