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 29c2a76 commit b4e7945Copy full SHA for b4e7945
src/otel/traces.rs
@@ -292,7 +292,9 @@ fn flatten_span_record(span_record: &Span) -> Vec<Map<String, Value>> {
292
if let Some(status) = &span_record.status {
293
span_record_json.extend(flatten_status(status));
294
}
295
-
+
296
+ // if span_record.events is null, code should still flatten other elements in the span record - this is handled in the if block
297
+ // else block handles the flattening the span record that includes events and links records in each span record
298
if span_records_json.is_empty() {
299
span_records_json = vec![span_record_json];
300
} else {
0 commit comments