< 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{
 375    public int RecentLogCapacity { get; set; } = 5_000;
 366    public int SubscriberChannelCapacity { get; set; } = 1_000;
 387    public int MaxRecentLogQuerySize { get; set; } = 1_000;
 358    public TimeSpan SourceHeartbeatTimeout { get; set; } = TimeSpan.FromSeconds(30);
 89    public bool IncludeStructuredLogsInternalLogs { get; set; }
 10
 1111    public ICollection<string> SensitiveNames { get; set; } =
 2212    [
 2213        "authorization",
 2214        "token",
 2215        "password",
 2216        "secret",
 2217        "api-key",
 2218        "apikey",
 2219        "cookie",
 2220        "connection-string",
 2221        "connectionstring"
 2222    ];
 23
 1124    public ICollection<string> SensitiveTextPatterns { get; set; } =
 2225    [
 2226        "(?i)bearer\\s+[A-Za-z0-9._~+/=-]+",
 2227        "(?i)(password|secret|token|api[-_]?key)\\s*[=:]\\s*[^\\s,;]+",
 2228        "(?i)(AccountKey|SharedAccessKey)=([^;\\s]+)"
 2229    ];
 30}