@@ -22,7 +22,7 @@ mod unix {
2222 use std:: process;
2323 use std:: time:: Duration ;
2424
25- use libdd_common:: { tag, Endpoint } ;
25+ use libdd_common:: tag;
2626 use libdd_crashtracker:: {
2727 self as crashtracker, CrashtrackerConfiguration , CrashtrackerReceiverConfig , Metadata ,
2828 StackFrame , StackTrace ,
@@ -73,12 +73,6 @@ mod unix {
7373 let stdout_filename = format ! ( "{output_dir}/out.stdout" ) ;
7474 let output_dir: & Path = output_dir. as_ref ( ) ;
7575
76- let endpoint = if output_url. is_empty ( ) {
77- None
78- } else {
79- Some ( Endpoint :: from_slice ( output_url) )
80- } ;
81-
8276 // The configuration can be modified by a Behavior (testing plan), so it is mut here.
8377 // Unlike a normal harness, in this harness tests are run in individual processes, so race
8478 // issues are avoided.
@@ -97,17 +91,16 @@ mod unix {
9791 Err ( _) => crashtracker:: StacktraceCollection :: WithoutSymbols ,
9892 } ;
9993
100- let mut config = CrashtrackerConfiguration :: new (
101- vec ! [ ] ,
102- true ,
103- true ,
104- endpoint,
105- stacktrace_collection,
106- crashtracker:: default_signals ( ) ,
107- Some ( TEST_COLLECTOR_TIMEOUT ) ,
108- Some ( "" . to_string ( ) ) ,
109- true ,
110- ) ?;
94+ let mut config = CrashtrackerConfiguration :: builder ( )
95+ . create_alt_stack ( true )
96+ . demangle_names ( true )
97+ . endpoint_url ( output_url)
98+ . resolve_frames ( stacktrace_collection)
99+ . signals ( crashtracker:: default_signals ( ) )
100+ . timeout ( TEST_COLLECTOR_TIMEOUT )
101+ . unix_socket_path ( "" . to_string ( ) )
102+ . use_alt_stack ( true )
103+ . build ( ) ?;
111104
112105 let metadata = Metadata {
113106 library_name : "libdatadog" . to_owned ( ) ,
0 commit comments