Skip to content

Commit 032e7a3

Browse files
committed
Fix to match libdatadog v16.0.1 APIs
1 parent d4bbeb2 commit 032e7a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/datadog_profiling_native_extension/heap_recorder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ static void unintern_all_or_raise(heap_recorder *recorder, ddog_prof_Slice_Manag
900900
}
901901

902902
static VALUE get_ruby_string_or_raise(heap_recorder *recorder, ddog_prof_ManagedStringId id) {
903-
ddog_prof_StringWrapperResult get_string_result = ddog_prof_ManagedStringStorage_get_string(recorder->string_storage, id);
904-
if (get_string_result.tag == DDOG_PROF_STRING_WRAPPER_RESULT_ERR) {
903+
ddog_StringWrapperResult get_string_result = ddog_prof_ManagedStringStorage_get_string(recorder->string_storage, id);
904+
if (get_string_result.tag == DDOG_STRING_WRAPPER_RESULT_ERR) {
905905
rb_raise(rb_eRuntimeError, "Failed to get string: %"PRIsVALUE, get_error_details_and_drop(&get_string_result.err));
906906
}
907907
VALUE ruby_string = ruby_string_from_vec_u8(get_string_result.ok.message);

0 commit comments

Comments
 (0)