aws / amazon-cloudwatch-logs-for-fluent-bit
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 53 units with 844 lines of code in units (83.3% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (185 lines of code)
    • 9 medium size units (320 lines of code)
    • 13 small units (193 lines of code)
    • 28 very small units (146 lines of code)
0% | 21% | 37% | 22% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 21% | 37% | 22% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cloudwatch0% | 28% | 36% | 25% | 9%
ROOT0% | 0% | 61% | 21% | 16%
cloudwatch/mock_cloudwatch0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func newCloudWatchLogsClient()
in cloudwatch/cloudwatch.go
67 13 1
func()
in cloudwatch/cloudwatch.go
63 11 1
func()
in cloudwatch/cloudwatch.go
55 17 1
func parseDataMapTags()
in cloudwatch/helpers.go
49 15 6
func NewOutputPlugin()
in cloudwatch/cloudwatch.go
47 6 1
func getConfiguration()
in fluent-bit-cloudwatch.go
44 3 2
func FLBPluginFlushCtx()
in fluent-bit-cloudwatch.go
37 7 4
func()
in cloudwatch/cloudwatch.go
35 8 1
func()
in cloudwatch/cloudwatch.go
31 8 1
func()
in cloudwatch/cloudwatch.go
29 7 1
func()
in cloudwatch/cloudwatch.go
26 5 1
func()
in cloudwatch/cloudwatch.go
22 2 1
func()
in cloudwatch/cloudwatch.go
19 5 1
func tagKeysToMap()
in cloudwatch/helpers.go
19 5 1
func()
in cloudwatch/cloudwatch.go
16 7 1
func customUserAgentHandler()
in cloudwatch/cloudwatch.go
16 2 1
func()
in cloudwatch/cloudwatch.go
15 5 1
func parseKeysTemplate()
in cloudwatch/helpers.go
15 4 3
func addPluginInstance()
in fluent-bit-cloudwatch.go
15 3 1
func()
in cloudwatch/cloudwatch.go
14 2 1