< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Logging.Enrichers.Extensions.ErrorRecordEnricherExtensions
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Enrichers/Extensions/ErrorRecordEnricherExtensions.cs
Tag: Kestrun/Kestrun@2d87023b37eb91155071c91dd3d6a2eeb3004705
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 18
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

Coverage history

Coverage history 0 25 50 75 100 08/26/2025 - 01:25:22 Line coverage: 100% (1/1) Total lines: 18 Tag: Kestrun/Kestrun@07f821172e5dc3657f1be7e6818f18d6721cf38a

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
WithErrorRecord(...)100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Logging/Enrichers/Extensions/ErrorRecordEnricherExtensions.cs

#LineLine coverage
 1using Serilog;
 2using Serilog.Configuration;
 3
 4namespace Kestrun.Logging.Enrichers.Extensions;
 5
 6/// <summary>
 7/// Provides extension methods for enriching Serilog logs with error record information.
 8/// </summary>
 9public static class ErrorRecordEnricherExtensions
 10{
 11    /// <summary>
 12    /// Enriches Serilog logs with error record information.
 13    /// </summary>
 14    /// <param name="loggerConfiguration">The logger enrichment configuration.</param>
 15    /// <param name="desctructureObjects">Specifies whether to destructure objects in the error record.</param>
 16    /// <returns>The logger configuration with error record enrichment.</returns>
 317    public static LoggerConfiguration WithErrorRecord(this LoggerEnrichmentConfiguration loggerConfiguration, bool desct
 18}