Skip to content

Commit

Permalink
(NOBIDS) incr error-metrics on failng app_subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Sep 25, 2024
1 parent fb896c6 commit 77ac288
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exporter/appsubscription_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/metrics"
"github.com/gobitfly/eth2-beaconchain-explorer/services"
"github.com/gobitfly/eth2-beaconchain-explorer/types"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
Expand Down Expand Up @@ -65,6 +66,7 @@ func checkSubscriptions() {
valid, err := VerifyReceipt(googleClient, appleClient, receipt)

if err != nil {
metrics.Errors.WithLabelValues("app_subscriptions").Inc()
errors = append(errors, err)

// error might indicate a connection problem, ignore validation response
Expand Down

0 comments on commit 77ac288

Please sign in to comment.