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

Function registerDropStatus

pkg/gatewayserver/observability.go:338–345  ·  view source on GitHub ↗
(ctx context.Context, gtw *ttnpb.Gateway, _ *ttnpb.GatewayStatus, host string, err error)

Source from the content-addressed store, hash-verified

336}
337
338func registerDropStatus(ctx context.Context, gtw *ttnpb.Gateway, _ *ttnpb.GatewayStatus, host string, err error) {
339 events.Publish(evtDropStatus.NewWithIdentifiersAndData(ctx, gtw, err))
340 errorLabel := unknown
341 if ttnErr, ok := errors.From(err); ok {
342 errorLabel = ttnErr.FullName()
343 }
344 gsMetrics.statusDropped.WithLabelValues(ctx, host, errorLabel).Inc()
345}
346
347func registerReceiveUplink(ctx context.Context, gtw *ttnpb.Gateway, msg *ttnpb.GatewayUplinkMessage, protocol string) {
348 events.Publish(evtReceiveUp.NewWithIdentifiersAndData(ctx, gtw, msg))

Callers 2

handlePacketMethod · 0.85
handleUpstreamMethod · 0.85

Calls 5

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

Tested by

no test coverage detected