Skip to content

Commit

Permalink
Stop reporting relayer sync times
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Dec 11, 2024
1 parent 5a82b3e commit 3fe797f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions temba/channels/android/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from temba.msgs.models import Msg
from temba.notifications.incidents.builtin import ChannelOutdatedAppIncidentType
from temba.notifications.models import Incident
from temba.utils import analytics, json
from temba.utils import json

from ..models import Channel, SyncEvent
from .claim import UnsupportedAndroidChannelError, get_or_create_channel
Expand Down Expand Up @@ -236,7 +236,4 @@ def sync(request, channel_id):
sync_event.outgoing_command_count = len([_ for _ in outgoing_cmds if _["cmd"] != "ack"])
sync_event.save()

# keep track of how long a sync takes
analytics.gauges({"temba.relayer_sync": time.time() - start})

return JsonResponse(result)

0 comments on commit 3fe797f

Please sign in to comment.