@@ -103,8 +103,6 @@ fn expand_from_parsed(args: MacroArgs, extern_: Mod) -> proc_macro2::TokenStream
103103 fns,
104104 } = extern_;
105105
106- let reexports = quote ! { #foundations:: reexports_for_macros } ;
107-
108106 // This should be using `Span::def_site` but it is currently unstable.
109107 let metrics_struct = Ident :: new ( & format ! ( "__{mod_name}_Metrics" ) , Span :: call_site ( ) ) ;
110108
@@ -152,8 +150,8 @@ fn expand_from_parsed(args: MacroArgs, extern_: Mod) -> proc_macro2::TokenStream
152150 #( #label_set_structs) *
153151
154152 #[ allow( non_upper_case_globals) ]
155- static #metrics_struct: #reexports :: once_cell :: sync:: Lazy <#metrics_struct> =
156- #reexports :: once_cell :: sync:: Lazy :: new( || {
153+ static #metrics_struct: :: std :: sync:: LazyLock <#metrics_struct> =
154+ :: std :: sync:: LazyLock :: new( || {
157155 #init_registry
158156 #init_opt_registry
159157
@@ -424,8 +422,8 @@ mod tests {
424422 struct __empty_Metrics { }
425423
426424 #[ allow( non_upper_case_globals) ]
427- static __empty_Metrics: :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy <__empty_Metrics> =
428- :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy :: new( || { __empty_Metrics { } } ) ;
425+ static __empty_Metrics: :: std :: sync:: LazyLock <__empty_Metrics> =
426+ :: std :: sync:: LazyLock :: new( || { __empty_Metrics { } } ) ;
429427 }
430428 } ;
431429
@@ -459,8 +457,8 @@ mod tests {
459457 }
460458
461459 #[ allow( non_upper_case_globals) ]
462- static __oxy_Metrics: tarmac :: reexports_for_macros :: once_cell :: sync:: Lazy <__oxy_Metrics> =
463- tarmac :: reexports_for_macros :: once_cell :: sync:: Lazy :: new( || {
460+ static __oxy_Metrics: :: std :: sync:: LazyLock <__oxy_Metrics> =
461+ :: std :: sync:: LazyLock :: new( || {
464462 let registry = & mut * tarmac:: telemetry:: metrics:: internal:: Registries :: get_subsystem( stringify!( oxy) , false , true ) ;
465463
466464 __oxy_Metrics {
@@ -516,8 +514,8 @@ mod tests {
516514 }
517515
518516 #[ allow( non_upper_case_globals) ]
519- static __oxy_Metrics: :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy <__oxy_Metrics> =
520- :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy :: new( || {
517+ static __oxy_Metrics: :: std :: sync:: LazyLock <__oxy_Metrics> =
518+ :: std :: sync:: LazyLock :: new( || {
521519 let opt_registry = & mut * :: foundations:: telemetry:: metrics:: internal:: Registries :: get_subsystem( stringify!( oxy) , true , true ) ;
522520
523521 __oxy_Metrics {
@@ -577,8 +575,8 @@ mod tests {
577575 }
578576
579577 #[ allow( non_upper_case_globals) ]
580- static __oxy_Metrics: :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy <__oxy_Metrics> =
581- :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy :: new( || {
578+ static __oxy_Metrics: :: std :: sync:: LazyLock <__oxy_Metrics> =
579+ :: std :: sync:: LazyLock :: new( || {
582580 let registry = & mut * :: foundations:: telemetry:: metrics:: internal:: Registries :: get_subsystem( stringify!( oxy) , false , false ) ;
583581 let opt_registry = & mut * :: foundations:: telemetry:: metrics:: internal:: Registries :: get_subsystem( stringify!( oxy) , true , false ) ;
584582
@@ -682,8 +680,8 @@ mod tests {
682680 }
683681
684682 #[ allow( non_upper_case_globals) ]
685- static __oxy_Metrics: :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy <__oxy_Metrics> =
686- :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy :: new( || {
683+ static __oxy_Metrics: :: std :: sync:: LazyLock <__oxy_Metrics> =
684+ :: std :: sync:: LazyLock :: new( || {
687685 let registry = & mut * :: foundations:: telemetry:: metrics:: internal:: Registries :: get_subsystem( stringify!( oxy) , false , true ) ;
688686
689687 __oxy_Metrics {
@@ -777,8 +775,8 @@ mod tests {
777775 }
778776
779777 #[ allow( non_upper_case_globals) ]
780- static __oxy_Metrics: :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy <__oxy_Metrics> =
781- :: foundations :: reexports_for_macros :: once_cell :: sync:: Lazy :: new( || {
778+ static __oxy_Metrics: :: std :: sync:: LazyLock <__oxy_Metrics> =
779+ :: std :: sync:: LazyLock :: new( || {
782780 let registry = & mut * :: foundations:: telemetry:: metrics:: internal:: Registries :: get_subsystem( stringify!( oxy) , false , true ) ;
783781
784782 __oxy_Metrics {
0 commit comments