aws / aws-xray-sdk-dotnet
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 510 units with 5,584 lines of code in units (67.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (301 lines of code)
    • 29 simple units (937 lines of code)
    • 476 very simple units (4,346 lines of code)
0% | 0% | 5% | 16% | 77%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 0% | 5% | 16% | 77%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
sdk/src/Handlers/AwsSdk0% | 0% | 19% | 24% | 56%
sdk/src/Core/Internal0% | 0% | 8% | 23% | 68%
sdk/src/Core/Strategies0% | 0% | 26% | 9% | 63%
sdk/src/Core/Sampling0% | 0% | 0% | 12% | 87%
sdk/src/Core0% | 0% | 0% | 11% | 88%
sdk/src/Handlers/AspNetCore0% | 0% | 0% | 36% | 63%
sdk/src/Handlers/AspNet0% | 0% | 0% | 21% | 78%
sdk/src/Handlers/EntityFramework0% | 0% | 0% | 15% | 84%
sdk/src/Handlers/System.Net0% | 0% | 0% | 15% | 84%
sdk/src/Handlers/SqlServer0% | 0% | 0% | 0% | 100%
sdk/src/Core/Plugins0% | 0% | 0% | 0% | 100%
sdk/src/Core/Exceptions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static bool WildcardMatch()
in sdk/src/Core/Internal/Utils/StringExtension.cs
48 19 3
private void AddRequestSpecificInformation()
in sdk/src/Handlers/AwsSdk/Internal/XRayPipelineHandler.cs
60 17 4
private void AddResponseSpecificInformation()
in sdk/src/Handlers/AwsSdk/Internal/XRayPipelineHandler.cs
60 17 4
private static void WriteEntityFields()
in sdk/src/Core/Internal/Emitters/JsonSegmentMarshaller.cs
71 13 2
public List DescribeException()
in sdk/src/Core/Strategies/DefaultExceptionSerializationStrategy.cs
62 13 2
private bool UpdateCache()
in sdk/src/Core/Internal/Utils/HostEndPoint.cs
67 10 0
public static bool IsIdValid()
in sdk/src/Core/Internal/Entities/TraceId.cs
42 10 1
public static bool TryParse()
in sdk/src/Core/Internal/Entities/TraceHeader.cs
48 10 2
public static TraceHeader FromString()
in sdk/src/Core/Internal/Entities/TraceHeader.cs
37 10 1
private void ProcessEndRequest()
in sdk/src/Handlers/AwsSdk/Internal/XRayPipelineHandler.cs
63 10 1
private void PopulateRecorder()
in sdk/src/Core/AwsXrayRecorderBuilder.cs
37 9 1
private void ProcessHTTPRequest()
in sdk/src/Handlers/AspNetCore/Internal/AWSXRayMiddleware.cs
52 9 1
public void AddAnnotation()
in sdk/src/Core/Internal/Entities/Entity.cs
38 8 2
internal ReserviorDecision BorrowOrTake()
in sdk/src/Core/Sampling/Reservior.cs
31 8 2
private bool IsValidVersion1()
in sdk/src/Core/Sampling/Local/LocalizedSamplingStrategy.cs
17 8 2
internal static string GetDataBaseType()
in sdk/src/Handlers/EntityFramework/EFUtil.cs
29 8 1
private static bool SimpleWildcardMatch()
in sdk/src/Core/Internal/Utils/StringExtension.cs
31 7 2
private static void CauseExporter()
in sdk/src/Core/Internal/Emitters/JsonSegmentMarshaller.cs
29 7 2
private void Init()
in sdk/src/Core/Sampling/Local/LocalizedSamplingStrategy.cs
41 7 1
private void EndFacadeSegment()
in sdk/src/Core/AWSXRayRecorder.netcore.cs
24 7 0