< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Telemetry.WcfInstrumentationActivitySource
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Telemetry/WcfInstrumentationActivitySource.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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 Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Telemetry/WcfInstrumentationActivitySource.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Collections.Generic;
 5using System.Diagnostics;
 6using System.Reflection;
 7using CoreWCF.Channels;
 8
 9namespace CoreWCF.Telemetry;
 10
 11/// <summary>
 12/// WCF instrumentation.
 13/// </summary>
 14internal static class WcfInstrumentationActivitySource
 15{
 816    internal static readonly Assembly Assembly = typeof(WcfInstrumentationActivitySource).Assembly;
 817    internal static readonly AssemblyName AssemblyName = Assembly.GetName();
 818    internal static readonly string ActivitySourceName = AssemblyName.Name!;
 819    internal static readonly string IncomingRequestActivityName = ActivitySourceName + ".IncomingRequest";
 20
 254421    public static ActivitySource ActivitySource { get; } = new(ActivitySourceName, Assembly.GetPackageVersion());
 22}

Methods/Properties

.cctor()
ActivitySource()