< Summary

Information
Class: ProjectTemplate.Web.Options.ApplicationOtlpExporterOptions
Assembly: ProjectTemplate.Web
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Options/ApplicationOtlpExporterOptions.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 22
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_Enabled()100%11100%
get_Endpoint()100%11100%
get_Protocol()100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Options/ApplicationOtlpExporterOptions.cs

#LineLine coverage
 1namespace ProjectTemplate.Web.Options;
 2
 3/// <summary>
 4/// Represents OTLP exporter configuration.
 5/// </summary>
 6public sealed class ApplicationOtlpExporterOptions
 7{
 8    /// <summary>
 9    /// Gets or sets a value indicating whether OTLP export is enabled.
 10    /// </summary>
 74011    public bool Enabled { get; set; }
 12
 13    /// <summary>
 14    /// Gets or sets the OTLP endpoint.
 15    /// </summary>
 62616    public string Endpoint { get; set; } = string.Empty;
 17
 18    /// <summary>
 19    /// Gets or sets the OTLP protocol. Supported values are Grpc and HttpProtobuf.
 20    /// </summary>
 62621    public string Protocol { get; set; } = "Grpc";
 22}