putUTFOrNull(value, t.message());
putUTFOrNull(value, t.stackTrace());
Long durationInMs = t.durationInMs();
value.put(durationInMs != null ? durationInMs.longValue() : -1);
value.put(t.type().ordinal());
value.put(t.status().ordinal());
}
private void putUTFOrNull(Value value, @Nullable String utfOrNull) {
if (utfOrNull != null) {
value.putUTF(utfOrNull);