Add export timestamp in JSON format (#1102)

pull/1107/head
Adam Slatinský 11 months ago committed by GitHub
parent c4137cf77e
commit 5e9c7392db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -262,6 +262,9 @@ internal class JsonMessageWriter : MessageWriter
_writer.WriteString("before", Context.Request.Before?.ToDate());
_writer.WriteEndObject();
// Timestamp
_writer.WriteString("exportedAt", System.DateTimeOffset.UtcNow);
// Message array (start)
_writer.WriteStartArray("messages");
await _writer.FlushAsync(cancellationToken);

Loading…
Cancel
Save