@@ -9,23 +9,23 @@ use core::fmt;
9
9
use std:: collections:: { HashMap , HashSet } ;
10
10
use std:: mem:: swap;
11
11
use std:: ops:: { Add , AddAssign , DerefMut , Sub } ;
12
- use std:: sync:: atomic:: { AtomicBool , AtomicI64 , AtomicU64 , AtomicUsize , Ordering } ;
12
+ use std:: sync:: atomic:: Ordering ;
13
+
14
+ #[ cfg( not( any( target_arch = "mips" , target_arch = "powerpc" ) ) ) ]
15
+ use std:: sync:: atomic:: { AtomicBool , AtomicI64 , AtomicU64 , AtomicUsize } ;
16
+
17
+ #[ cfg( any( target_arch = "mips" , target_arch = "powerpc" ) ) ]
18
+ use portable_atomic:: { AtomicBool , AtomicI64 , AtomicU64 , AtomicUsize } ;
19
+
13
20
use std:: sync:: { Arc , OnceLock , RwLock } ;
14
21
15
22
use aggregate:: { is_under_cardinality_limit, STREAM_CARDINALITY_LIMIT } ;
16
23
pub ( crate ) use aggregate:: { AggregateBuilder , AggregateFns , ComputeAggregation , Measure } ;
17
24
pub ( crate ) use exponential_histogram:: { EXPO_MAX_SCALE , EXPO_MIN_SCALE } ;
18
25
use opentelemetry:: { otel_warn, KeyValue } ;
19
26
20
- #[ cfg( any( target_arch = "mips" , target_arch = "powerpc" ) ) ]
21
- use portable_atomic:: { AtomicBool , AtomicI64 , AtomicU64 , AtomicUsize } ;
22
-
23
27
// TODO Replace it with LazyLock once it is stable
24
28
pub ( crate ) static STREAM_OVERFLOW_ATTRIBUTES : OnceLock < Vec < KeyValue > > = OnceLock :: new ( ) ;
25
- #[ cfg( not( any( target_arch = "mips" , target_arch = "powerpc" ) ) ) ]
26
- use std:: sync:: atomic:: { AtomicBool , AtomicI64 , AtomicU64 , AtomicUsize } ;
27
-
28
- use crate :: metrics:: AttributeSet ;
29
29
30
30
#[ inline]
31
31
fn stream_overflow_attributes ( ) -> & ' static Vec < KeyValue > {
0 commit comments