We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a9aab commit 8f9c327Copy full SHA for 8f9c327
opentelemetry-sdk/src/attributes/set.rs
@@ -122,7 +122,7 @@ impl From<&[KeyValue]> for AttributeSet {
122
}
123
})
124
.collect::<Vec<_>>();
125
- vec.sort();
+ vec.sort_unstable();
126
127
let mut hasher = DefaultHasher::new();
128
for value in &vec {
@@ -135,10 +135,11 @@ impl From<&[KeyValue]> for AttributeSet {
135
136
impl From<&Resource> for AttributeSet {
137
fn from(values: &Resource) -> Self {
138
- let vec = values
+ let mut vec = values
139
.iter()
140
.map(|(key, value)| HashKeyValue(KeyValue::new(key.clone(), value.clone())))
141
142
143
144
145
0 commit comments