@@ -141,6 +141,11 @@ def assert_single_transaction_with_profile_chunks(
141141 if max_chunks is not None :
142142 assert len (items ["profile_chunk" ]) <= max_chunks
143143
144+ for chunk_item in items ["profile_chunk" ]:
145+ chunk = chunk_item .payload .json
146+ headers = chunk_item .headers
147+ assert chunk ["platform" ] == headers ["platform" ]
148+
144149 transaction = items ["transaction" ][0 ].payload .json
145150
146151 trace_context = transaction ["contexts" ]["trace" ]
@@ -215,12 +220,12 @@ def assert_single_transaction_without_profile_chunks(envelopes):
215220 pytest .param (
216221 start_profile_session ,
217222 stop_profile_session ,
218- id = "start_profile_session/stop_profile_session" ,
223+ id = "start_profile_session/stop_profile_session (deprecated) " ,
219224 ),
220225 pytest .param (
221226 start_profiler ,
222227 stop_profiler ,
223- id = "start_profiler/stop_profiler (deprecated) " ,
228+ id = "start_profiler/stop_profiler" ,
224229 ),
225230 ],
226231)
@@ -292,12 +297,12 @@ def test_continuous_profiler_auto_start_and_manual_stop(
292297 pytest .param (
293298 start_profile_session ,
294299 stop_profile_session ,
295- id = "start_profile_session/stop_profile_session" ,
300+ id = "start_profile_session/stop_profile_session (deprecated) " ,
296301 ),
297302 pytest .param (
298303 start_profiler ,
299304 stop_profiler ,
300- id = "start_profiler/stop_profiler (deprecated) " ,
305+ id = "start_profiler/stop_profiler" ,
301306 ),
302307 ],
303308)
@@ -374,12 +379,12 @@ def test_continuous_profiler_manual_start_and_stop_sampled(
374379 pytest .param (
375380 start_profile_session ,
376381 stop_profile_session ,
377- id = "start_profile_session/stop_profile_session" ,
382+ id = "start_profile_session/stop_profile_session (deprecated) " ,
378383 ),
379384 pytest .param (
380385 start_profiler ,
381386 stop_profiler ,
382- id = "start_profiler/stop_profiler (deprecated) " ,
387+ id = "start_profiler/stop_profiler" ,
383388 ),
384389 ],
385390)
@@ -544,12 +549,12 @@ def test_continuous_profiler_auto_start_and_stop_unsampled(
544549 pytest .param (
545550 start_profile_session ,
546551 stop_profile_session ,
547- id = "start_profile_session/stop_profile_session" ,
552+ id = "start_profile_session/stop_profile_session (deprecated) " ,
548553 ),
549554 pytest .param (
550555 start_profiler ,
551556 stop_profiler ,
552- id = "start_profiler/stop_profiler (deprecated) " ,
557+ id = "start_profiler/stop_profiler" ,
553558 ),
554559 ],
555560)
0 commit comments