@@ -45,7 +45,7 @@ def setUp(self):
45
45
},
46
46
)
47
47
48
- def load_trace (self , is_eap = False ):
48
+ def load_trace (self , is_eap = True ):
49
49
self .root_event = self .create_event (
50
50
trace_id = self .trace_id ,
51
51
transaction = "root" ,
@@ -228,6 +228,7 @@ def test_no_roots(self) -> None:
228
228
spans = [],
229
229
parent_span_id = parent_span_id ,
230
230
project_id = self .project .id ,
231
+ is_eap = True ,
231
232
)
232
233
url = reverse (
233
234
"sentry-api-0-organization-events-trace-light" ,
@@ -262,6 +263,7 @@ def test_multiple_roots(self) -> None:
262
263
spans = [],
263
264
parent_span_id = None ,
264
265
project_id = self .project .id ,
266
+ is_eap = True ,
265
267
)
266
268
with self .feature (self .FEATURES ):
267
269
data : dict [str , str | int ] = {"event_id" : second_root .event_id , "project" : - 1 }
@@ -309,6 +311,7 @@ def test_root_with_multiple_roots(self) -> None:
309
311
spans = [],
310
312
parent_span_id = None ,
311
313
project_id = self .project .id ,
314
+ is_eap = True ,
312
315
)
313
316
with self .feature (self .FEATURES ):
314
317
response = self .client .get (
@@ -380,6 +383,7 @@ def test_direct_parent_with_children_and_multiple_root(self) -> None:
380
383
spans = [],
381
384
parent_span_id = None ,
382
385
project_id = self .project .id ,
386
+ is_eap = True ,
383
387
)
384
388
385
389
with self .feature (self .FEATURES ):
@@ -467,6 +471,7 @@ def test_sibling_transactions(self) -> None:
467
471
project_id = self .create_project (organization = self .organization ).id ,
468
472
parent_span_id = self .gen2_span_ids [1 ],
469
473
milliseconds = 500 ,
474
+ is_eap = True ,
470
475
).event_id ,
471
476
self .create_event (
472
477
trace_id = self .trace_id ,
@@ -475,6 +480,7 @@ def test_sibling_transactions(self) -> None:
475
480
project_id = self .create_project (organization = self .organization ).id ,
476
481
parent_span_id = self .gen2_span_ids [1 ],
477
482
milliseconds = 1500 ,
483
+ is_eap = True ,
478
484
).event_id ,
479
485
]
480
486
@@ -795,6 +801,7 @@ def test_detailed_trace_with_bad_tags(self) -> None:
795
801
tags = [["somethinglong" * 250 , "somethinglong" * 250 ]],
796
802
milliseconds = 3000 ,
797
803
store_event_kwargs = {"assert_no_errors" : False },
804
+ is_eap = True ,
798
805
)
799
806
800
807
url = reverse (
@@ -839,6 +846,7 @@ def test_bad_span_loop(self) -> None:
839
846
],
840
847
parent_span_id = self .gen2_span_ids [1 ],
841
848
project_id = self .project .id ,
849
+ is_eap = True ,
842
850
)
843
851
844
852
with self .feature (self .FEATURES ):
@@ -878,6 +886,7 @@ def test_bad_orphan_span_loop(self) -> None:
878
886
project_id = self .project .id ,
879
887
milliseconds = 3000 ,
880
888
start_timestamp = self .day_ago - timedelta (minutes = 1 ),
889
+ is_eap = True ,
881
890
)
882
891
orphan_child = self .create_event (
883
892
trace_id = self .trace_id ,
@@ -894,6 +903,7 @@ def test_bad_orphan_span_loop(self) -> None:
894
903
parent_span_id = root_span_id ,
895
904
project_id = self .project .id ,
896
905
milliseconds = 300 ,
906
+ is_eap = True ,
897
907
)
898
908
with self .feature (self .FEATURES ):
899
909
response = self .client_get (
@@ -920,6 +930,7 @@ def test_multiple_roots(self) -> None:
920
930
parent_span_id = None ,
921
931
project_id = self .project .id ,
922
932
milliseconds = 500 ,
933
+ is_eap = True ,
923
934
)
924
935
second_root = self .create_event (
925
936
trace_id = trace_id ,
@@ -928,6 +939,7 @@ def test_multiple_roots(self) -> None:
928
939
parent_span_id = None ,
929
940
project_id = self .project .id ,
930
941
milliseconds = 1000 ,
942
+ is_eap = True ,
931
943
)
932
944
self .url = reverse (
933
945
self .url_name ,
@@ -957,6 +969,7 @@ def test_sibling_transactions(self) -> None:
957
969
project_id = self .create_project (organization = self .organization ).id ,
958
970
parent_span_id = self .gen2_span_ids [1 ],
959
971
milliseconds = 1000 ,
972
+ is_eap = True ,
960
973
).event_id ,
961
974
self .create_event (
962
975
trace_id = self .trace_id ,
@@ -965,6 +978,7 @@ def test_sibling_transactions(self) -> None:
965
978
project_id = self .create_project (organization = self .organization ).id ,
966
979
parent_span_id = self .gen2_span_ids [1 ],
967
980
milliseconds = 2000 ,
981
+ is_eap = True ,
968
982
).event_id ,
969
983
]
970
984
@@ -992,6 +1006,7 @@ def test_with_orphan_siblings(self) -> None:
992
1006
project_id = self .project .id ,
993
1007
# Shorter duration means that this event happened first, and should be ordered first
994
1008
milliseconds = 1000 ,
1009
+ is_eap = True ,
995
1010
)
996
1011
root_sibling_event = self .create_event (
997
1012
trace_id = self .trace_id ,
@@ -1000,6 +1015,7 @@ def test_with_orphan_siblings(self) -> None:
1000
1015
parent_span_id = parent_span_id ,
1001
1016
project_id = self .project .id ,
1002
1017
milliseconds = 2000 ,
1018
+ is_eap = True ,
1003
1019
)
1004
1020
1005
1021
with self .feature (self .FEATURES ):
@@ -1042,6 +1058,7 @@ def test_with_orphan_trace(self) -> None:
1042
1058
project_id = self .project .id ,
1043
1059
milliseconds = 3000 ,
1044
1060
start_timestamp = self .day_ago - timedelta (minutes = 1 ),
1061
+ is_eap = True ,
1045
1062
)
1046
1063
child_event = self .create_event (
1047
1064
trace_id = self .trace_id ,
@@ -1061,6 +1078,7 @@ def test_with_orphan_trace(self) -> None:
1061
1078
# Because the snuba query orders based is_root then timestamp, this causes grandchild1-0 to be added to
1062
1079
# results first before child1-0
1063
1080
milliseconds = 2000 ,
1081
+ is_eap = True ,
1064
1082
)
1065
1083
grandchild_event = self .create_event (
1066
1084
trace_id = self .trace_id ,
@@ -1078,6 +1096,7 @@ def test_with_orphan_trace(self) -> None:
1078
1096
span_id = orphan_span_ids ["grandchild" ],
1079
1097
project_id = self .gen1_project .id ,
1080
1098
milliseconds = 1000 ,
1099
+ is_eap = True ,
1081
1100
)
1082
1101
1083
1102
with self .feature (self .FEATURES ):
0 commit comments