Skip to content

Commit 4ba62ec

Browse files
committed
add project root rule before running enhancements
1 parent f84de8a commit 4ba62ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sentry/stacktraces/processing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ def normalize_stacktraces_for_grouping(
350350

351351
# If a grouping config is available, run grouping enhancers
352352
if grouping_config is not None:
353+
# Some SDKs (so far only Python, but could be extended to others in the future) send the
354+
# running app's working directory as `project_root`, so it can be used when determining
355+
# what's in and out of app
356+
_add_project_root_rule_to_enhancements(data, grouping_config)
357+
353358
with sentry_sdk.start_span(op=op, name="apply_modifications_to_frame"):
354359
for frames, stacktrace_container in zip(stacktrace_frames, stacktrace_containers):
355360
# This call has a caching mechanism when the same stacktrace and rules are used

0 commit comments

Comments
 (0)