File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -652,6 +652,12 @@ def apply_to_event(
652
652
653
653
self ._apply_contexts_to_event (event , hint , options )
654
654
655
+ if is_check_in :
656
+ # Check-ins only support the trace context, strip all others
657
+ event ["contexts" ] = {
658
+ "trace" : event .setdefault ("contexts" , {}).get ("trace" , {})
659
+ }
660
+
655
661
if not is_check_in :
656
662
self ._apply_level_to_event (event , hint , options )
657
663
self ._apply_fingerprint_to_event (event , hint , options )
@@ -680,13 +686,16 @@ def _drop(cause, ty):
680
686
event = new_event
681
687
682
688
# run event processors
683
- for event_processor in chain (global_event_processors , self ._event_processors ):
684
- new_event = event
685
- with capture_internal_exceptions ():
686
- new_event = event_processor (event , hint )
687
- if new_event is None :
688
- return _drop (event_processor , "event processor" )
689
- event = new_event
689
+ if not is_check_in :
690
+ for event_processor in chain (
691
+ global_event_processors , self ._event_processors
692
+ ):
693
+ new_event = event
694
+ with capture_internal_exceptions ():
695
+ new_event = event_processor (event , hint )
696
+ if new_event is None :
697
+ return _drop (event_processor , "event processor" )
698
+ event = new_event
690
699
691
700
return event
692
701
You can’t perform that action at this time.
0 commit comments