@@ -6,7 +6,7 @@ use std::num::NonZeroI64;
66use  super :: datatypes:: { profile_ptr_to_inner,  Profile } ; 
77use  datadog_profiling:: { 
88    api:: ManagedStringId , 
9-     collections:: identifiable:: InternalStringId , 
9+     collections:: identifiable:: StringId , 
1010    internal:: { 
1111        self , 
1212        interning_api:: { Generation ,  GenerationalId } , 
@@ -20,7 +20,7 @@ use ddcommon_ffi::{
2020use  function_name:: named; 
2121
2222// Cbindgen was putting invalid C types on the static, this workaround seems to fix it. 
23- type  CbindgenIsDumbStringId  = GenerationalId < InternalStringId > ; 
23+ type  CbindgenIsDumbStringId  = GenerationalId < StringId > ; 
2424
2525#[ no_mangle]  
2626#[ used]  
@@ -43,9 +43,9 @@ pub static ddog_INTERNED_EMPTY_STRING: CbindgenIsDumbStringId =
4343#[ named]  
4444pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_function ( 
4545    profile :  * mut  Profile , 
46-     name :  GenerationalId < InternalStringId > , 
47-     system_name :  GenerationalId < InternalStringId > , 
48-     filename :  GenerationalId < InternalStringId > , 
46+     name :  GenerationalId < StringId > , 
47+     system_name :  GenerationalId < StringId > , 
48+     filename :  GenerationalId < StringId > , 
4949)  -> Result < GenerationalId < InternalFunctionId > >  { 
5050    wrap_with_ffi_result ! ( { 
5151        profile_ptr_to_inner( profile) ?. intern_function( name,  system_name,  filename) 
@@ -68,14 +68,14 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_function(
6868#[ named]  
6969pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_label_num ( 
7070    profile :  * mut  Profile , 
71-     key :  GenerationalId < InternalStringId > , 
71+     key :  GenerationalId < StringId > , 
7272    val :  i64 , 
7373)  -> Result < GenerationalId < LabelId > >  { 
7474    wrap_with_ffi_result ! ( { 
7575        profile_ptr_to_inner( profile) ?. intern_label_num( 
7676            key, 
7777            val, 
78-             GenerationalId :: new_immortal( InternalStringId :: ZERO ) , 
78+             GenerationalId :: new_immortal( StringId :: ZERO ) , 
7979        ) 
8080    } ) 
8181} 
@@ -96,9 +96,9 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_label_num(
9696#[ named]  
9797pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_label_num_with_unit ( 
9898    profile :  * mut  Profile , 
99-     key :  GenerationalId < InternalStringId > , 
99+     key :  GenerationalId < StringId > , 
100100    val :  i64 , 
101-     unit :  GenerationalId < InternalStringId > , 
101+     unit :  GenerationalId < StringId > , 
102102)  -> Result < GenerationalId < LabelId > >  { 
103103    wrap_with_ffi_result ! ( {  profile_ptr_to_inner( profile) ?. intern_label_num( key,  val,  unit)  } ) 
104104} 
@@ -119,8 +119,8 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_label_num_with_unit(
119119#[ named]  
120120pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_label_str ( 
121121    profile :  * mut  Profile , 
122-     key :  GenerationalId < InternalStringId > , 
123-     val :  GenerationalId < InternalStringId > , 
122+     key :  GenerationalId < StringId > , 
123+     val :  GenerationalId < StringId > , 
124124)  -> Result < GenerationalId < LabelId > >  { 
125125    wrap_with_ffi_result ! ( {  profile_ptr_to_inner( profile) ?. intern_label_str( key,  val)  } ) 
126126} 
@@ -214,7 +214,7 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_location_with_mapping_id(
214214pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_managed_string ( 
215215    profile :  * mut  Profile , 
216216    s :  ManagedStringId , 
217- )  -> Result < GenerationalId < InternalStringId > >  { 
217+ )  -> Result < GenerationalId < StringId > >  { 
218218    wrap_with_ffi_result ! ( {  profile_ptr_to_inner( profile) ?. intern_managed_string( s)  } ) 
219219} 
220220
@@ -235,7 +235,7 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_managed_string(
235235pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_managed_strings ( 
236236    profile :  * mut  Profile , 
237237    strings :  Slice < ManagedStringId > , 
238-     mut  out :  MutSlice < GenerationalId < InternalStringId > > , 
238+     mut  out :  MutSlice < GenerationalId < StringId > > , 
239239)  -> VoidResult  { 
240240    wrap_with_void_ffi_result ! ( { 
241241        anyhow:: ensure!( strings. len( )  == out. len( ) ) ; 
@@ -263,8 +263,8 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_mapping(
263263    memory_start :  u64 , 
264264    memory_limit :  u64 , 
265265    file_offset :  u64 , 
266-     filename :  GenerationalId < InternalStringId > , 
267-     build_id :  GenerationalId < InternalStringId > , 
266+     filename :  GenerationalId < StringId > , 
267+     build_id :  GenerationalId < StringId > , 
268268)  -> Result < GenerationalId < InternalMappingId > >  { 
269269    wrap_with_ffi_result ! ( { 
270270        profile_ptr_to_inner( profile) ?. intern_mapping( 
@@ -349,7 +349,7 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_stacktrace(
349349pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_string ( 
350350    profile :  * mut  Profile , 
351351    s :  CharSlice , 
352- )  -> Result < GenerationalId < InternalStringId > >  { 
352+ )  -> Result < GenerationalId < StringId > >  { 
353353    wrap_with_ffi_result ! ( {  profile_ptr_to_inner( profile) ?. intern_string( s. try_to_utf8( ) ?)  } ) 
354354} 
355355
@@ -358,8 +358,7 @@ pub unsafe extern "C" fn ddog_prof_Profile_intern_string(
358358/// # Safety 
359359/// No preconditions 
360360#[ no_mangle]  
361- pub  unsafe  extern  "C"  fn  ddog_prof_Profile_interned_empty_string ( 
362- )  -> GenerationalId < InternalStringId >  { 
361+ pub  unsafe  extern  "C"  fn  ddog_prof_Profile_interned_empty_string ( )  -> GenerationalId < StringId >  { 
363362    internal:: Profile :: INTERNED_EMPTY_STRING 
364363} 
365364
@@ -380,7 +379,7 @@ pub unsafe extern "C" fn ddog_prof_Profile_interned_empty_string(
380379pub  unsafe  extern  "C"  fn  ddog_prof_Profile_intern_strings ( 
381380    profile :  * mut  Profile , 
382381    strings :  Slice < CharSlice > , 
383-     mut  out :  MutSlice < GenerationalId < InternalStringId > > , 
382+     mut  out :  MutSlice < GenerationalId < StringId > > , 
384383)  -> VoidResult  { 
385384    wrap_with_void_ffi_result ! ( { 
386385        anyhow:: ensure!( strings. len( )  == out. len( ) ) ; 
0 commit comments