Skip to content

Commit 46b18fb

Browse files
Copilotlalitb
andauthored
fix: [Geneva Exporter] Remove sorting from Geneva Exporter schema ID calculation for performance optimization (#413)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: lalitb <[email protected]> Co-authored-by: Lalit Kumar Bhasin <[email protected]>
1 parent 179f777 commit 46b18fb

File tree

1 file changed

+1
-3
lines changed
  • opentelemetry-exporter-geneva/geneva-uploader/src/payload_encoder

1 file changed

+1
-3
lines changed

opentelemetry-exporter-geneva/geneva-uploader/src/payload_encoder/otlp_encoder.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ impl OtlpEncoder {
213213
}
214214
}
215215

216-
// Sort fields by name for consistent schema ID generation
217-
fields.sort_by(|a, b| a.0.cmp(&b.0));
218-
216+
// No sorting - field order affects schema ID calculation
219217
// Hash field names and types while converting to FieldDef
220218
let field_defs: Vec<FieldDef> = fields
221219
.into_iter()

0 commit comments

Comments
 (0)