Skip to content

Commit b964349

Browse files
committed
error message update
1 parent 1c7f3dd commit b964349

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

libdd-trace-utils/src/otlp_encoder/mapper.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ fn map_span<T: TraceData>(span: &Span<T>) -> OtlpSpan {
144144
code: json_types::status_code::ERROR,
145145
})
146146
} else {
147-
None
147+
Some(Status {
148+
message: None,
149+
code: json_types::status_code::UNSET,
150+
})
148151
};
149152
// Set flags from sampling priority: 1 = sampled/keep, 0 = dropped.
150153
let flags = span

0 commit comments

Comments
 (0)