Skip to content

Commit ce636cd

Browse files
committed
small fixes
1 parent 917c4a7 commit ce636cd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/sentry/processing_errors/eap/producer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
logger = logging.getLogger(__name__)
2525

2626
PROCESSING_ERROR_NAMESPACE = uuid.UUID("a4d8f4e2-1b3c-4a9d-9e1f-5c2b1a0d7f6e")
27-
2827
EAP_ITEMS_CODEC: Codec[TraceItem] = get_topic_codec(Topic.SNUBA_ITEMS)
2928

3029

@@ -100,7 +99,7 @@ def produce_processing_errors_to_eap(
10099
organization_id=project.organization_id,
101100
project_id=project.id,
102101
item_id=item_id,
103-
item_type=TraceItemType.TRACE_ITEM_TYPE_PREPROD, # TODO: switch to TRACE_ITEM_TYPE_PROCESSING_ERROR once sentry-protos is updated
102+
item_type=TraceItemType.TRACE_ITEM_TYPE_PROCESSING_ERROR,
104103
timestamp=timestamp,
105104
trace_id=trace_id,
106105
retention_days=retention_days,

src/sentry/tasks/post_process.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from sentry.issues.grouptype import GroupCategory
2121
from sentry.issues.issue_occurrence import IssueOccurrence
2222
from sentry.killswitches import killswitch_matches_context
23+
from sentry.processing_errors.eap.producer import produce_processing_errors_to_eap
2324
from sentry.replays.lib.event_linking import transform_event_for_linking_payload
2425
from sentry.replays.lib.kafka import initialize_replays_publisher
2526
from sentry.seer.autofix.constants import FixabilityScoreThresholds
@@ -1291,8 +1292,6 @@ def process_processing_errors_eap(job: PostProcessJob):
12911292
if not processing_errors:
12921293
return
12931294

1294-
from sentry.processing_errors.eap.producer import produce_processing_errors_to_eap
1295-
12961295
produce_processing_errors_to_eap(event.project, event.data, processing_errors)
12971296

12981297

0 commit comments

Comments
 (0)