Skip to content

Commit ff3b313

Browse files
authored
perf: add tracing to missing spans in processing (#66958)
Reduces the missing spans in the processing pipeline. Ref: https://github.com/getsentry/team-processing/issues/135
1 parent d1f9beb commit ff3b313

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/sentry/reprocessing2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ def pop_batched_events_from_redis(key: str) -> tuple[list[str], datetime | None,
470470
return reprocessing_store.pop_batched_events_by_key(key)
471471

472472

473+
@sentry_sdk.tracing.trace
473474
def mark_event_reprocessed(
474475
data: dict[str, Any] | None = None,
475476
group_id: str | None = None,

src/sentry/tasks/store.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ def _do_save_event(
843843
time_synthetic_monitoring_event(data, project_id, start_time)
844844

845845

846+
@sentry_sdk.tracing.trace
846847
def time_synthetic_monitoring_event(data: Event, project_id: int, start_time: float | None) -> bool:
847848
"""
848849
For special events produced by the recurring synthetic monitoring

0 commit comments

Comments
 (0)