< Summary

Information
Class: Elsa.Diagnostics.StructuredLogs.Models.StructuredLogEvent
Assembly: Elsa.Diagnostics.StructuredLogs
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.StructuredLogs/Models/StructuredLogEvent.cs
Line coverage
100%
Covered lines: 20
Uncovered lines: 0
Coverable lines: 20
Total lines: 25
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_Sequence()100%11100%
get_Timestamp()100%11100%
get_ReceivedAt()100%11100%
get_Level()100%11100%
get_Category()100%11100%
get_EventId()100%11100%
get_EventName()100%11100%
get_Message()100%11100%
get_MessageTemplate()100%11100%
get_Exception()100%11100%
get_Scopes()100%11100%
get_Properties()100%11100%
get_TraceId()100%11100%
get_SpanId()100%11100%
get_CorrelationId()100%11100%
get_TenantId()100%11100%
get_WorkflowDefinitionId()100%11100%
get_WorkflowInstanceId()100%11100%
get_SourceId()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.StructuredLogs/Models/StructuredLogEvent.cs

#LineLine coverage
 1namespace Elsa.Diagnostics.StructuredLogs.Models;
 2
 3public record StructuredLogEvent
 4{
 415    public string Id { get; init; } = Guid.NewGuid().ToString("N");
 336    public long Sequence { get; init; }
 387    public DateTimeOffset Timestamp { get; init; }
 458    public DateTimeOffset ReceivedAt { get; init; }
 319    public StructuredLogLevel Level { get; init; }
 4810    public string Category { get; init; } = default!;
 511    public int EventId { get; init; }
 512    public string? EventName { get; init; }
 7313    public string Message { get; init; } = string.Empty;
 2714    public string? MessageTemplate { get; init; }
 2815    public StructuredLogException? Exception { get; init; }
 5216    public IDictionary<string, string?> Scopes { get; init; } = new Dictionary<string, string?>();
 5517    public IDictionary<string, string?> Properties { get; init; } = new Dictionary<string, string?>();
 2618    public string? TraceId { get; init; }
 2619    public string? SpanId { get; init; }
 2620    public string? CorrelationId { get; init; }
 2821    public string? TenantId { get; init; }
 2222    public string? WorkflowDefinitionId { get; init; }
 2723    public string? WorkflowInstanceId { get; init; }
 7224    public string SourceId { get; init; } = default!;
 25}