Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/sentry/profiles/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,13 @@ def process_profile_task(
set_span_attribute("profile.stacks.processed", len(profile["profile"]["stacks"]))
set_span_attribute("profile.frames.processed", len(profile["profile"]["frames"]))

if options.get("profiling.stack_trace_rules.enabled"):
try:
with metrics.timer("process_profile.apply_stack_trace_rules"):
rules_config = project.get_option("sentry:grouping_enhancements")
if rules_config is not None and rules_config != "":
apply_stack_trace_rules_to_profile(profile, rules_config)
except Exception as e:
sentry_sdk.capture_exception(e)
try:
with metrics.timer("process_profile.apply_stack_trace_rules"):
rules_config = project.get_option("sentry:grouping_enhancements")
if rules_config is not None and rules_config != "":
apply_stack_trace_rules_to_profile(profile, rules_config)
except Exception as e:
sentry_sdk.capture_exception(e)

if not _process_vroomrs_profile(profile, project):
return
Expand Down
Loading