diff --git a/ext/libdatadog_api/crashtracker.c b/ext/libdatadog_api/crashtracker.c index 7633d1af40b..87a35171f8a 100644 --- a/ext/libdatadog_api/crashtracker.c +++ b/ext/libdatadog_api/crashtracker.c @@ -98,7 +98,7 @@ static VALUE _native_start_or_update_on_fork(int argc, VALUE *argv, DDTRACE_UNUS .optional_stdout_filename = {}, }; - ddog_crasht_Result result = + ddog_VoidResult result = action == start_action ? ddog_crasht_init(config, receiver_config, metadata) : ddog_crasht_update_on_fork(config, receiver_config, metadata); @@ -108,7 +108,7 @@ static VALUE _native_start_or_update_on_fork(int argc, VALUE *argv, DDTRACE_UNUS ddog_endpoint_drop(endpoint); // }} End of exception-free zone to prevent leaks - if (result.tag == DDOG_CRASHT_RESULT_ERR) { + if (result.tag == DDOG_VOID_RESULT_ERR) { rb_raise(rb_eRuntimeError, "Failed to start/update the crash tracker: %"PRIsVALUE, get_error_details_and_drop(&result.err)); } @@ -116,9 +116,9 @@ static VALUE _native_start_or_update_on_fork(int argc, VALUE *argv, DDTRACE_UNUS } static VALUE _native_stop(DDTRACE_UNUSED VALUE _self) { - ddog_crasht_Result result = ddog_crasht_shutdown(); + ddog_VoidResult result = ddog_crasht_shutdown(); - if (result.tag == DDOG_CRASHT_RESULT_ERR) { + if (result.tag == DDOG_VOID_RESULT_ERR) { rb_raise(rb_eRuntimeError, "Failed to stop the crash tracker: %"PRIsVALUE, get_error_details_and_drop(&result.err)); }