@@ -4,10 +4,10 @@ use std::sync::atomic::{AtomicU8, Ordering};
44use std:: sync:: Once ;
55use std:: time:: Duration ;
66
7- use datadog_crashtracker:: {
7+ use libdd_common:: Endpoint ;
8+ use libdd_crashtracker:: {
89 CrashtrackerConfiguration , CrashtrackerReceiverConfig , Metadata , StacktraceCollection ,
910} ;
10- use ddcommon:: Endpoint ;
1111use pyo3:: prelude:: * ;
1212
1313pub trait RustWrapper {
@@ -20,7 +20,7 @@ pub trait RustWrapper {
2020 }
2121}
2222
23- // We redefine the Enum here to expose it to Python as datadog_crashtracker ::StacktraceCollection
23+ // We redefine the Enum here to expose it to Python as libdd_crashtracker ::StacktraceCollection
2424// is defined in an external crate.
2525#[ pyclass(
2626 eq,
@@ -92,7 +92,7 @@ impl CrashtrackerConfigurationPy {
9292 use_alt_stack,
9393 endpoint,
9494 resolve_frames,
95- datadog_crashtracker :: default_signals ( ) ,
95+ libdd_crashtracker :: default_signals ( ) ,
9696 Some ( Duration :: from_millis ( timeout_ms) ) ,
9797 unix_socket_path,
9898 true , /* demangle_names */
@@ -235,7 +235,7 @@ pub fn crashtracker_init<'py>(
235235 if let ( Some ( config) , Some ( receiver_config) , Some ( metadata) ) =
236236 ( config_opt, receiver_config_opt, metadata_opt)
237237 {
238- match datadog_crashtracker :: init ( config, receiver_config, metadata) {
238+ match libdd_crashtracker :: init ( config, receiver_config, metadata) {
239239 Ok ( _) => CRASHTRACKER_STATUS
240240 . store ( CrashtrackerStatus :: Initialized as u8 , Ordering :: SeqCst ) ,
241241 Err ( e) => {
@@ -269,7 +269,7 @@ pub fn crashtracker_on_fork<'py>(
269269
270270 // Note to self: is it possible to call crashtracker_on_fork before crashtracker_init?
271271 // dd-trace-py seems to start crashtracker early on.
272- datadog_crashtracker :: on_fork ( inner_config, inner_receiver_config, inner_metadata)
272+ libdd_crashtracker :: on_fork ( inner_config, inner_receiver_config, inner_metadata)
273273}
274274
275275#[ pyfunction( name = "crashtracker_status" ) ]
@@ -286,5 +286,5 @@ pub fn crashtracker_status() -> anyhow::Result<CrashtrackerStatus> {
286286// binary names for the receiver, since Python installs the script as a command.
287287#[ pyfunction( name = "crashtracker_receiver" ) ]
288288pub fn crashtracker_receiver ( ) -> anyhow:: Result < ( ) > {
289- datadog_crashtracker :: receiver_entry_point_stdin ( )
289+ libdd_crashtracker :: receiver_entry_point_stdin ( )
290290}
0 commit comments