< Summary

Information
Class: Elsa.Diagnostics.StructuredLogs.Persistence.Relational.Models.RelationalStructuredLogRecord
Assembly: Elsa.Diagnostics.StructuredLogs.Persistence.Relational
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.StructuredLogs.Persistence.Relational/Models/RelationalStructuredLogRecord.cs
Line coverage
100%
Covered lines: 20
Uncovered lines: 0
Coverable lines: 20
Total lines: 27
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_ExceptionJson()100%11100%
get_ScopesJson()100%11100%
get_PropertiesJson()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.Persistence.Relational/Models/RelationalStructuredLogRecord.cs

#LineLine coverage
 1using Elsa.Diagnostics.StructuredLogs.Models;
 2
 3namespace Elsa.Diagnostics.StructuredLogs.Persistence.Relational.Models;
 4
 5public record RelationalStructuredLogRecord
 6{
 77    public string Id { get; init; } = default!;
 78    public long Sequence { get; init; }
 79    public string Timestamp { get; init; } = default!;
 710    public string ReceivedAt { get; init; } = default!;
 711    public StructuredLogLevel Level { get; init; }
 712    public string Category { get; init; } = default!;
 713    public int EventId { get; init; }
 614    public string? EventName { get; init; }
 1115    public string Message { get; init; } = string.Empty;
 616    public string? MessageTemplate { get; init; }
 717    public string? ExceptionJson { get; init; }
 1118    public string ScopesJson { get; init; } = "{}";
 1119    public string PropertiesJson { get; init; } = "{}";
 620    public string? TraceId { get; init; }
 621    public string? SpanId { get; init; }
 622    public string? CorrelationId { get; init; }
 623    public string? TenantId { get; init; }
 624    public string? WorkflowDefinitionId { get; init; }
 625    public string? WorkflowInstanceId { get; init; }
 726    public string SourceId { get; init; } = default!;
 27}