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).
public static void onExit() in instrumentation/logback-1.0/src/main/java/software/amazon/opentelemetry/javaagent/instrumentation/logback_1_0/AwsXrayLoggingEventInstrumentation.java
25
6
3
public void inject() in awspropagator/src/main/java/software/amazon/opentelemetry/awspropagator/AwsCompositePropagator.java
static in awsagentprovider/src/main/java/software/amazon/opentelemetry/javaagent/providers/AwsTracerConfigurer.java
8
3
0
public static void main() in sample-apps/springboot/src/main/java/com/amazon/sampleapp/DemoApplication.java
19
2
1
public String awssdkCall() in sample-apps/springboot/src/main/java/com/amazon/sampleapp/DemoController.java
7
2
0
public Map supplyContextData() in instrumentation/log4j-2.13.2/src/main/java/software/amazon/opentelemetry/javaagent/instrumentation/log4j_2_13_2/AwsXrayContextDataProvider.java
15
2
0
public void addInterceptors() in sample-apps/springboot/src/main/java/com/amazon/sampleapp/DemoApplicationInterceptorConfig.java
3
1
1
public S3Client s3() in sample-apps/springboot/src/main/java/com/amazon/sampleapp/DemoApplication.java