| | | 1 | | namespace Elsa.Diagnostics.StructuredLogs.Models; |
| | | 2 | | |
| | | 3 | | public record StructuredLogEvent |
| | | 4 | | { |
| | 45 | 5 | | public string Id { get; init; } = Guid.NewGuid().ToString("N"); |
| | 37 | 6 | | public long Sequence { get; init; } |
| | 42 | 7 | | public DateTimeOffset Timestamp { get; init; } |
| | 49 | 8 | | public DateTimeOffset ReceivedAt { get; init; } |
| | 35 | 9 | | public StructuredLogLevel Level { get; init; } |
| | 52 | 10 | | public string Category { get; init; } = default!; |
| | 5 | 11 | | public int EventId { get; init; } |
| | 5 | 12 | | public string? EventName { get; init; } |
| | 81 | 13 | | public string Message { get; init; } = string.Empty; |
| | 27 | 14 | | public string? MessageTemplate { get; init; } |
| | 28 | 15 | | public StructuredLogException? Exception { get; init; } |
| | 56 | 16 | | public IDictionary<string, string?> Scopes { get; init; } = new Dictionary<string, string?>(); |
| | 59 | 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; } |
| | 76 | 24 | | public string SourceId { get; init; } = default!; |
| | | 25 | | } |