< 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@9d3a582b2d63930269564a7591aa77ef297cadeb
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

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}