diff --git a/ext/datadog_profiling_native_extension/profiling.c b/ext/datadog_profiling_native_extension/profiling.c index e26bbf897a3..e6143533eef 100644 --- a/ext/datadog_profiling_native_extension/profiling.c +++ b/ext/datadog_profiling_native_extension/profiling.c @@ -41,6 +41,10 @@ static VALUE _native_malloc_stats(DDTRACE_UNUSED VALUE _self); static VALUE _native_safe_object_info(DDTRACE_UNUSED VALUE _self, VALUE obj); void DDTRACE_EXPORT Init_datadog_profiling_native_extension(void) { + // The profiler still has a lot of limitations around being used in Ractors BUT for now we're choosing to take care of those + // on our side, rather than asking Ruby to block calling our APIs from Ractors. + rb_ext_ractor_safe(true); + VALUE datadog_module = rb_define_module("Datadog"); VALUE profiling_module = rb_define_module_under(datadog_module, "Profiling"); VALUE native_extension_module = rb_define_module_under(profiling_module, "NativeExtension");