@@ -143,14 +143,14 @@ def _span_details():
143143 user_attrs = captured_event .user_attributes
144144 agent_attrs = captured_event .agent_attributes
145145 else :
146- intrinsics , _ , agent_attrs = captured_event
146+ intrinsics , _ , _ = captured_event
147147
148148 # Find the span by name.
149149 if not check_value_equals (intrinsics , "name" , name ):
150150 continue
151- assert check_value_length (agent_attrs , "nr.ids" , compressed_span_count - 1 , mismatches ), _span_details ()
151+ assert check_value_length (intrinsics , "nr.ids" , compressed_span_count - 1 , mismatches ), _span_details ()
152152 assert check_value_between (
153- agent_attrs ,
153+ intrinsics ,
154154 "nr.durations" ,
155155 expected_nr_durations_low_bound ,
156156 expected_nr_durations_high_bound ,
@@ -946,16 +946,16 @@ async def call_tests():
946946 @validate_span_events (
947947 count = 1 , # Entry span.
948948 exact_intrinsics = {
949- "name" : "Function/test_distributed_tracing:test_partial_granularity_max_compressed_spans.<locals>._test"
949+ "name" : "Function/test_distributed_tracing:test_partial_granularity_max_compressed_spans.<locals>._test" ,
950+ "nr.pg" : True ,
950951 },
951- exact_agents = {"nr.pg" : True },
952952 expected_intrinsics = ["duration" , "timestamp" ],
953953 )
954954 @validate_span_events (
955955 count = 1 , # 1 external compressed span.
956956 exact_intrinsics = {"name" : "External/localhost:3000/requests/GET" },
957+ expected_intrinsics = ["nr.durations" , "nr.ids" ],
957958 exact_agents = {"http.url" : "http://localhost:3000/" },
958- expected_agents = ["nr.durations" , "nr.ids" ],
959959 )
960960 @validate_compact_span_event (
961961 name = "External/localhost:3000/requests/GET" ,
@@ -1001,16 +1001,16 @@ async def call_tests():
10011001 @validate_span_events (
10021002 count = 1 , # Entry span.
10031003 exact_intrinsics = {
1004- "name" : "Function/test_distributed_tracing:test_partial_granularity_compressed_span_attributes_in_series.<locals>._test"
1004+ "name" : "Function/test_distributed_tracing:test_partial_granularity_compressed_span_attributes_in_series.<locals>._test" ,
1005+ "nr.pg" : True ,
10051006 },
1006- exact_agents = {"nr.pg" : True },
10071007 expected_intrinsics = ["duration" , "timestamp" ],
10081008 )
10091009 @validate_span_events (
10101010 count = 1 , # 1 external compressed span.
10111011 exact_intrinsics = {"name" : "External/localhost:3000/requests/GET" },
1012+ expected_intrinsics = ["nr.durations" , "nr.ids" ],
10121013 exact_agents = {"http.url" : "http://localhost:3000/" },
1013- expected_agents = ["nr.durations" , "nr.ids" ],
10141014 )
10151015 @validate_compact_span_event (
10161016 name = "External/localhost:3000/requests/GET" ,
@@ -1046,16 +1046,16 @@ def test_partial_granularity_compressed_span_attributes_overlapping():
10461046 @validate_span_events (
10471047 count = 1 , # Entry span.
10481048 exact_intrinsics = {
1049- "name" : "Function/test_distributed_tracing:test_partial_granularity_compressed_span_attributes_overlapping.<locals>._test"
1049+ "name" : "Function/test_distributed_tracing:test_partial_granularity_compressed_span_attributes_overlapping.<locals>._test" ,
1050+ "nr.pg" : True ,
10501051 },
1051- exact_agents = {"nr.pg" : True },
10521052 expected_intrinsics = ["duration" , "timestamp" ],
10531053 )
10541054 @validate_span_events (
10551055 count = 1 , # 1 external compressed span.
10561056 exact_intrinsics = {"name" : "External/localhost:3000/requests/GET" },
1057+ expected_intrinsics = ["nr.durations" , "nr.ids" ],
10571058 exact_agents = {"http.url" : "http://localhost:3000/" },
1058- expected_agents = ["nr.durations" , "nr.ids" ],
10591059 )
10601060 @validate_compact_span_event (
10611061 name = "External/localhost:3000/requests/GET" ,
@@ -1101,9 +1101,9 @@ def foo():
11011101 @validate_span_events (
11021102 count = 1 , # Entry span.
11031103 exact_intrinsics = {
1104- "name" : "Function/test_distributed_tracing:test_partial_granularity_reduced_span_attributes.<locals>._test"
1104+ "name" : "Function/test_distributed_tracing:test_partial_granularity_reduced_span_attributes.<locals>._test" ,
1105+ "nr.pg" : True ,
11051106 },
1106- exact_agents = {"nr.pg" : True },
11071107 expected_intrinsics = ["duration" , "timestamp" ],
11081108 expected_agents = ["code.function" , "code.lineno" , "code.namespace" ],
11091109 )
@@ -1156,9 +1156,9 @@ def foo():
11561156 @validate_span_events (
11571157 count = 1 , # Entry span.
11581158 exact_intrinsics = {
1159- "name" : "Function/test_distributed_tracing:test_partial_granularity_essential_span_attributes.<locals>._test"
1159+ "name" : "Function/test_distributed_tracing:test_partial_granularity_essential_span_attributes.<locals>._test" ,
1160+ "nr.pg" : True ,
11601161 },
1161- exact_agents = {"nr.pg" : True },
11621162 expected_intrinsics = ["duration" , "timestamp" ],
11631163 unexpected_agents = ["code.function" , "code.lineno" , "code.namespace" ],
11641164 )
@@ -1491,21 +1491,21 @@ def call_tests():
14911491 @validate_span_events (
14921492 count = 1 , # Entry span.
14931493 exact_intrinsics = {
1494- "name" : "Function/test_distributed_tracing:test_partial_granularity_errors_on_compressed_spans.<locals>._test"
1494+ "name" : "Function/test_distributed_tracing:test_partial_granularity_errors_on_compressed_spans.<locals>._test" ,
1495+ "nr.pg" : True ,
14951496 },
1496- exact_agents = {"nr.pg" : True },
14971497 expected_intrinsics = ["duration" , "timestamp" ],
14981498 )
14991499 @validate_span_events (
15001500 count = 1 , # 1 external compressed span.
15011501 exact_intrinsics = {"name" : "External/localhost:3000/requests/GET" },
1502+ expected_intrinsics = ["nr.durations" , "nr.ids" ],
15021503 exact_agents = {
15031504 "http.url" : "http://localhost:3000/" ,
15041505 "error.class" : callable_name (Exception ),
15051506 "error.message" : "Exception 2" ,
15061507 "error.expected" : True ,
15071508 },
1508- expected_agents = ["nr.durations" , "nr.ids" ],
15091509 )
15101510 @validate_compact_span_event (
15111511 name = "External/localhost:3000/requests/GET" ,
@@ -1554,21 +1554,21 @@ def call_tests():
15541554 @validate_span_events (
15551555 count = 1 , # Entry span.
15561556 exact_intrinsics = {
1557- "name" : "Function/test_distributed_tracing:test_partial_granularity_errors_on_compressed_spans_status_overriden.<locals>._test"
1557+ "name" : "Function/test_distributed_tracing:test_partial_granularity_errors_on_compressed_spans_status_overriden.<locals>._test" ,
1558+ "nr.pg" : True ,
15581559 },
1559- exact_agents = {"nr.pg" : True },
15601560 expected_intrinsics = ["duration" , "timestamp" ],
15611561 )
15621562 @validate_span_events (
15631563 count = 1 , # 1 external compressed span.
15641564 exact_intrinsics = {"name" : "External/localhost:3000/requests/GET" },
1565+ expected_intrinsics = ["nr.durations" , "nr.ids" ],
15651566 exact_agents = {
15661567 "http.url" : "http://localhost:3000/" ,
15671568 "error.class" : callable_name (Exception ),
15681569 "error.message" : "Exception 2" ,
15691570 "error.expected" : False ,
15701571 },
1571- expected_agents = ["nr.durations" , "nr.ids" ],
15721572 )
15731573 @validate_compact_span_event (
15741574 name = "External/localhost:3000/requests/GET" ,
0 commit comments