-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(ownership): refactor post_process telemetry (#78979)
I was finding this code very hard to read with all of the telemetry context creations and indentation. No behavior changes intended. - [x] Taking advantage of `metrics.wraps` and `sentry_sdk.trace` we can get rid of most of these. - [x] Additionally, i've removed the spans around the caching operations as all of our cache get / sets get instrumented with spans anways. - [x] Utilize return early pattern to prevent more nesting - [x] we don't need a wrapper to try / except the whole function as post process already does this https://github.com/getsentry/sentry/blob/020c9f4a668fdf5adf64791efc856384db4cde87/src/sentry/tasks/post_process.py#L692
- Loading branch information
Showing
2 changed files
with
71 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters