< Summary

Information
Class: Elsa.Diagnostics.StructuredLogs.Options.StructuredLogsOptions
Assembly: Elsa.Diagnostics.StructuredLogs
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.StructuredLogs/Options/StructuredLogsOptions.cs
Line coverage
100%
Covered lines: 23
Uncovered lines: 0
Coverable lines: 23
Total lines: 30
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_RecentLogCapacity()100%11100%
get_SubscriberChannelCapacity()100%11100%
get_MaxRecentLogQuerySize()100%11100%
get_SourceHeartbeatTimeout()100%11100%
get_IncludeStructuredLogsInternalLogs()100%11100%
get_SensitiveNames()100%11100%
.ctor()100%11100%
get_SensitiveTextPatterns()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.StructuredLogs/Options/StructuredLogsOptions.cs

#LineLine coverage
 1namespace Elsa.Diagnostics.StructuredLogs.Options;
 2
 3public class StructuredLogsOptions
 4{
 415    public int RecentLogCapacity { get; set; } = 5_000;
 386    public int SubscriberChannelCapacity { get; set; } = 1_000;
 407    public int MaxRecentLogQuerySize { get; set; } = 1_000;
 378    public TimeSpan SourceHeartbeatTimeout { get; set; } = TimeSpan.FromSeconds(30);
 89    public bool IncludeStructuredLogsInternalLogs { get; set; }
 10
 1211    public ICollection<string> SensitiveNames { get; set; } =
 2412    [
 2413        "authorization",
 2414        "token",
 2415        "password",
 2416        "secret",
 2417        "api-key",
 2418        "apikey",
 2419        "cookie",
 2420        "connection-string",
 2421        "connectionstring"
 2422    ];
 23
 1224    public ICollection<string> SensitiveTextPatterns { get; set; } =
 2425    [
 2426        "(?i)bearer\\s+[A-Za-z0-9._~+/=-]+",
 2427        "(?i)(password|secret|token|api[-_]?key)\\s*[=:]\\s*[^\\s,;]+",
 2428        "(?i)(AccountKey|SharedAccessKey)=([^;\\s]+)"
 2429    ];
 30}