Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/sentry/monitors/logic/incident_occurrence.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import uuid
from collections import Counter
from collections.abc import Mapping, Sequence
from datetime import datetime, timezone
from datetime import datetime
from typing import TYPE_CHECKING

from arroyo import Topic as ArroyoTopic
Expand Down Expand Up @@ -138,8 +138,6 @@ def send_incident_occurrence(
"""
monitor_env = failed_checkin.monitor_environment

current_timestamp = datetime.now(timezone.utc)

# Get last successful check-in to show in evidence display
last_successful_checkin_timestamp = "Never"
last_successful_checkin = monitor_env.get_last_successful_checkin()
Expand Down Expand Up @@ -217,7 +215,7 @@ def send_incident_occurrence(
"monitor.slug": str(monitor_env.monitor.slug),
"monitor.incident": str(incident.id),
},
"timestamp": current_timestamp.isoformat(),
"timestamp": received.isoformat(),
}

if trace_id:
Expand Down
Loading