From 43c09a8c4fb954cdd67f5a226041b1c4ebf715e7 Mon Sep 17 00:00:00 2001 From: Daniel Cadenas Date: Tue, 30 Apr 2024 12:06:48 -0300 Subject: [PATCH] Revert "Quick test to see if metrics is the issue" This reverts commit 24bd55782c256a58a0a53382930fc8618a973756. --- service/app/handler_process_saved_event.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/app/handler_process_saved_event.go b/service/app/handler_process_saved_event.go index 31693e8..d0b915f 100644 --- a/service/app/handler_process_saved_event.go +++ b/service/app/handler_process_saved_event.go @@ -176,20 +176,20 @@ func (h *ProcessSavedEventHandler) maybeSendEventToRelay(ctx context.Context, ev defer cancel() if !ShouldSendEventToRelay(event) { - //h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionIgnore, SendEventToRelayResultSuccess) + h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionIgnore, SendEventToRelayResultSuccess) return nil } if err := h.eventSender.SendEvent(ctx, nosRelayAddress, event); err != nil { if h.shouldDisregardSendEventErr(err) { - //h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionSend, SendEventToRelayResultIgnoreError) + h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionSend, SendEventToRelayResultIgnoreError) return nil } - //h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionSend, SendEventToRelayResultError) + h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionSend, SendEventToRelayResultError) return errors.Wrap(err, "error sending event to relay") } - //h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionSend, SendEventToRelayResultSuccess) + h.metrics.ReportEventSentToRelay(nosRelayAddress, SendEventToRelayDecisionSend, SendEventToRelayResultSuccess) return nil }