File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import logging
4
- import random
5
- import string
6
4
import time
7
5
from collections import defaultdict
8
6
from dataclasses import dataclass
@@ -443,13 +441,6 @@ def get_replay_id(event: Event | GroupEvent) -> str | None:
443
441
return replay_id
444
442
445
443
446
- def generate_notification_uuid () -> str :
447
- """
448
- Generates a random string of 16 characters to be used as a notification uuid
449
- """
450
- return "" .join (random .choices (string .ascii_letters + string .digits , k = 16 ))
451
-
452
-
453
444
@dataclass
454
445
class PerformanceProblemContext :
455
446
problem : PerformanceProblem
Original file line number Diff line number Diff line change 2
2
3
3
import heapq
4
4
import logging
5
+ import uuid
5
6
from datetime import timedelta
6
7
from functools import partial , reduce
7
8
from typing import Tuple
32
33
OrganizationMember ,
33
34
OrganizationStatus ,
34
35
)
35
- from sentry .notifications .utils import generate_notification_uuid
36
36
from sentry .services .hybrid_cloud .user_option import user_option_service
37
37
from sentry .silo import SiloMode
38
38
from sentry .snuba .dataset import Dataset
@@ -743,7 +743,7 @@ def render_template_context(ctx, user_id):
743
743
"organizations:session-replay" , ctx .organization
744
744
) and features .has ("organizations:session-replay-weekly-email" , ctx .organization )
745
745
746
- notification_uuid = generate_notification_uuid ( )
746
+ notification_uuid = str ( uuid . uuid4 () )
747
747
748
748
# Render the first section of the email where we had the table showing the
749
749
# number of accepted/dropped errors/transactions for each project.
You can’t perform that action at this time.
0 commit comments