Skip to content

Commit

Permalink
add project_root to debug_meta in event
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Jan 16, 2025
1 parent 3f57299 commit caaf3cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sentry_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,10 @@ def _prepare_event(
if event.get("platform") is None:
event["platform"] = "python"

event.setdefault("debug_meta", {}).update(
{"project_root": self.options["project_root"]}
)

event = handle_in_app(
event,
self.options["in_app_exclude"],
Expand Down

0 comments on commit caaf3cf

Please sign in to comment.