feat(telemetry)_: track store confirmation failures

This commit is contained in:
Arseniy Klempner 2024-09-04 16:32:25 -07:00
parent 1c0b830ebd
commit 916376d3b3
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B
1 changed files with 5 additions and 5 deletions

View File

@ -12,12 +12,12 @@ import (
"go.uber.org/zap"
"github.com/status-im/status-go/common"
"github.com/ethereum/go-ethereum/common"
"github.com/status-im/status-go/eth-node/types"
"github.com/status-im/status-go/protocol/transport"
"github.com/status-im/status-go/wakuv2"
"github.com/status-im/status-go/wakuv2/common"
wakuv2common "github.com/status-im/status-go/wakuv2/common"
wps "github.com/waku-org/go-waku/waku/v2/peerstore"
v2protocol "github.com/waku-org/go-waku/waku/v2/protocol"
@ -105,9 +105,9 @@ func (c *Client) PushPeerCountByOrigin(ctx context.Context, peerCountByOrigin ma
}
}
func (c *Client) PushDialFailure(ctx context.Context, dialFailure common.DialError) {
func (c *Client) PushDialFailure(ctx context.Context, dialFailure wakuv2common.DialError) {
var errorMessage string = ""
if dialFailure.ErrType == common.ErrorUnknown {
if dialFailure.ErrType == wakuv2common.ErrorUnknown {
errorMessage = dialFailure.ErrMsg
}
c.processAndPushTelemetry(ctx, DialFailure{ErrorType: dialFailure.ErrType, ErrorMsg: errorMessage, Protocols: dialFailure.Protocols})
@ -147,7 +147,7 @@ type PeerCountByOrigin struct {
}
type DialFailure struct {
ErrorType common.DialErrorType
ErrorType wakuv2common.DialErrorType
ErrorMsg string
Protocols string
}