Skip to content

Commit

Permalink
fix(eap): make attr table truncate even more permissive (#6327)
Browse files Browse the repository at this point in the history
This table is truncated to `toStartOfDay` and has weird artifacts around
timezones, just truncate to a whole 48 hour span.
  • Loading branch information
colin-sentry committed Sep 19, 2024
1 parent f2199a5 commit 6fe79f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snuba/web/rpc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def truncate_request_meta_to_day(meta: RequestMeta) -> None:
start_timestamp = datetime.utcfromtimestamp(meta.start_timestamp.seconds)
end_timestamp = datetime.utcfromtimestamp(meta.end_timestamp.seconds)
start_timestamp = start_timestamp.replace(
day=start_timestamp.day, hour=0, minute=0, second=0, microsecond=0
day=start_timestamp.day - 1, hour=0, minute=0, second=0, microsecond=0
)
end_timestamp = end_timestamp.replace(
day=end_timestamp.day + 1, hour=0, minute=0, second=0, microsecond=0
Expand Down

0 comments on commit 6fe79f0

Please sign in to comment.