File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -474,12 +474,13 @@ def _prepare_event(
474
474
scope , # type: Optional[Scope]
475
475
):
476
476
# type: (...) -> Optional[Event]
477
+ is_transaction = event .get ("type" ) == "transaction"
478
+ is_checkin = event .get ("type" ) == "check_in"
477
479
478
480
if event .get ("timestamp" ) is None :
479
481
event ["timestamp" ] = datetime .now (timezone .utc )
480
482
481
483
if scope is not None :
482
- is_transaction = event .get ("type" ) == "transaction"
483
484
spans_before = len (event .get ("spans" , []))
484
485
event_ = scope .apply_to_event (event , hint , self .options )
485
486
@@ -541,6 +542,11 @@ def _prepare_event(
541
542
if event .get ("platform" ) is None :
542
543
event ["platform" ] = "python"
543
544
545
+ if not is_transaction and not is_checkin :
546
+ event .setdefault ("debug_meta" , {}).update (
547
+ {"project_root" : self .options ["project_root" ]}
548
+ )
549
+
544
550
event = handle_in_app (
545
551
event ,
546
552
self .options ["in_app_exclude" ],
You can’t perform that action at this time.
0 commit comments