Skip to content

Commit caaf3cf

Browse files
committed
add project_root to debug_meta in event
1 parent 3f57299 commit caaf3cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sentry_sdk/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,10 @@ def _prepare_event(
541541
if event.get("platform") is None:
542542
event["platform"] = "python"
543543

544+
event.setdefault("debug_meta", {}).update(
545+
{"project_root": self.options["project_root"]}
546+
)
547+
544548
event = handle_in_app(
545549
event,
546550
self.options["in_app_exclude"],

0 commit comments

Comments
 (0)