File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -601,17 +601,18 @@ fn test_transaction_envelope_dsc_headers() {
601
601
) ;
602
602
603
603
assert ! ( trace_id. is_some( ) ) ;
604
+ let trace_id = trace_id. unwrap ( ) ;
604
605
assert_eq ! ( envelopes. len( ) , 1 ) ;
605
606
let envelope = envelopes. into_iter ( ) . next ( ) . unwrap ( ) ;
606
-
607
- let expected = EnvelopeHeaders :: new ( )
608
- . with_event_id ( envelope . uuid ( ) . copied ( ) )
609
- . with_trace ( Some (
610
- DynamicSamplingContext :: new ( )
611
- . with_trace_id ( trace_id)
612
- . with_public_key ( Some ( dsn. unwrap ( ) . public_key ( ) . to_owned ( ) ) )
613
- . with_sample_rate ( Some ( 1.0 ) )
614
- . with_sampled ( Some ( true ) ) ,
615
- ) ) ;
607
+ assert ! ( envelope . uuid ( ) . is_some ( ) ) ;
608
+ let uuid = envelope . uuid ( ) . copied ( ) . unwrap ( ) ;
609
+
610
+ let expected = EnvelopeHeaders :: new ( ) . with_event_id ( uuid ) . with_trace (
611
+ DynamicSamplingContext :: new ( )
612
+ . with_trace_id ( trace_id)
613
+ . with_public_key ( dsn. unwrap ( ) . public_key ( ) . to_owned ( ) )
614
+ . with_sample_rate ( 1.0 )
615
+ . with_sampled ( true ) ,
616
+ ) ;
616
617
assert_eq ! ( envelope. headers( ) , & expected) ;
617
618
}
You can’t perform that action at this time.
0 commit comments