| | | 1 | | namespace Elsa.Diagnostics.StructuredLogs.Models; |
| | | 2 | | |
| | | 3 | | public record StructuredLogEvent |
| | | 4 | | { |
| | 41 | 5 | | public string Id { get; init; } = Guid.NewGuid().ToString("N"); |
| | 33 | 6 | | public long Sequence { get; init; } |
| | 38 | 7 | | public DateTimeOffset Timestamp { get; init; } |
| | 45 | 8 | | public DateTimeOffset ReceivedAt { get; init; } |
| | 31 | 9 | | public StructuredLogLevel Level { get; init; } |
| | 48 | 10 | | public string Category { get; init; } = default!; |
| | 5 | 11 | | public int EventId { get; init; } |
| | 5 | 12 | | public string? EventName { get; init; } |
| | 73 | 13 | | public string Message { get; init; } = string.Empty; |
| | 27 | 14 | | public string? MessageTemplate { get; init; } |
| | 28 | 15 | | public StructuredLogException? Exception { get; init; } |
| | 52 | 16 | | public IDictionary<string, string?> Scopes { get; init; } = new Dictionary<string, string?>(); |
| | 55 | 17 | | public IDictionary<string, string?> Properties { get; init; } = new Dictionary<string, string?>(); |
| | 26 | 18 | | public string? TraceId { get; init; } |
| | 26 | 19 | | public string? SpanId { get; init; } |
| | 26 | 20 | | public string? CorrelationId { get; init; } |
| | 28 | 21 | | public string? TenantId { get; init; } |
| | 22 | 22 | | public string? WorkflowDefinitionId { get; init; } |
| | 27 | 23 | | public string? WorkflowInstanceId { get; init; } |
| | 72 | 24 | | public string SourceId { get; init; } = default!; |
| | | 25 | | } |