| | | 1 | | namespace Elsa.Diagnostics.StructuredLogs.Models; |
| | | 2 | | |
| | | 3 | | public record StructuredLogEvent |
| | | 4 | | { |
| | 301 | 5 | | public string Id { get; init; } = Guid.NewGuid().ToString("N"); |
| | 173 | 6 | | public long Sequence { get; init; } |
| | 185 | 7 | | public DateTimeOffset Timestamp { get; init; } |
| | 264 | 8 | | public DateTimeOffset ReceivedAt { get; init; } |
| | 148 | 9 | | public StructuredLogLevel Level { get; init; } |
| | 211 | 10 | | public string Category { get; init; } = default!; |
| | 59 | 11 | | public int EventId { get; init; } |
| | 59 | 12 | | public string? EventName { get; init; } |
| | 272 | 13 | | public string Message { get; init; } = string.Empty; |
| | 135 | 14 | | public string? MessageTemplate { get; init; } |
| | 86 | 15 | | public StructuredLogException? Exception { get; init; } |
| | 193 | 16 | | public IDictionary<string, string?> Scopes { get; init; } = new Dictionary<string, string?>(); |
| | 196 | 17 | | public IDictionary<string, string?> Properties { get; init; } = new Dictionary<string, string?>(); |
| | 172 | 18 | | public string? TraceId { get; init; } |
| | 170 | 19 | | public string? SpanId { get; init; } |
| | 168 | 20 | | public string? CorrelationId { get; init; } |
| | 180 | 21 | | public string? TenantId { get; init; } |
| | 172 | 22 | | public string? WorkflowDefinitionId { get; init; } |
| | 175 | 23 | | public string? WorkflowInstanceId { get; init; } |
| | 329 | 24 | | public string SourceId { get; init; } = default!; |
| | | 25 | | } |