awslabs / aws-embedded-metrics-node
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 36 files with 1,135 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (226 lines of code)
    • 34 very small files (909 lines of code)
0% | 0% | 0% | 19% | 80%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts0% | 0% | 0% | 21% | 78%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/logger0% | 0% | 0% | 48% | 51%
src/environment0% | 0% | 0% | 28% | 71%
src/sinks/connections0% | 0% | 0% | 0% | 100%
src/sinks0% | 0% | 0% | 0% | 100%
buildspecs0% | 0% | 0% | 0% | 100%
src/serializers0% | 0% | 0% | 0% | 100%
src/config0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
Longest Files (Top 36)
File# lines# units
MetricsContext.ts
in src/logger
119 12
ECSEnvironment.ts
in src/environment
107 7
TcpClient.ts
in src/sinks/connections
91 6
AgentSink.ts
in src/sinks
83 4
EnvironmentDetector.ts
in src/environment
74 -
EC2Environment.ts
in src/environment
62 6
MetricsLogger.ts
in src/logger
56 9
LogSerializer.ts
in src/serializers
50 1
EnvironmentConfigurationProvider.ts
in src/config
48 4
LambdaEnvironment.ts
in src/environment
45 8
Fetch.ts
in src/utils
45 -
DefaultEnvironment.ts
in src/environment
39 6
LocalEnvironment.ts
in src/environment
36 6
Unit.ts
in src/logger
29 -
UdpClient.ts
in src/sinks/connections
23 3
buildspec.yml
in buildspecs
22 -
buildspec-node14.yml
in buildspecs
22 -
MetricScope.ts
in src/logger
21 -
buildspec.canary.yml
in buildspecs
19 -
buildspec.release.yml
in buildspecs
16 -
ConsoleSink.ts
in src/sinks
16 2
SerializerFactory.ts
in src/serializers
13 -
MetricValues.ts
in src/logger
12 2
IConfiguration.ts
in src/config
11 -
IEnvironment.ts
in src/environment
10 -
Environments.ts
in src/environment
9 -
MetricsLoggerFactory.ts
in src/logger
9 -
index.ts
in src
8 -
Logger.ts
in src/utils
7 -
Constants.ts
in src
7 -
Time.ts
in src/utils
5 -
Sink.ts
in src/sinks
5 -
IEndpoint.ts
in src/sinks/connections
5 -
Serializer.ts
in src/serializers
4 -
ISocketClient.ts
in src/sinks/connections
4 -
Configuration.ts
in src/config
3 -
Files With Most Units (Top 14)
File# lines# units
MetricsContext.ts
in src/logger
119 12
MetricsLogger.ts
in src/logger
56 9
LambdaEnvironment.ts
in src/environment
45 8
ECSEnvironment.ts
in src/environment
107 7
LocalEnvironment.ts
in src/environment
36 6
DefaultEnvironment.ts
in src/environment
39 6
EC2Environment.ts
in src/environment
62 6
TcpClient.ts
in src/sinks/connections
91 6
EnvironmentConfigurationProvider.ts
in src/config
48 4
AgentSink.ts
in src/sinks
83 4
UdpClient.ts
in src/sinks/connections
23 3
MetricValues.ts
in src/logger
12 2
ConsoleSink.ts
in src/sinks
16 2
LogSerializer.ts
in src/serializers
50 1
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 4 long lines.

File# lines# units# long lines
buildspec.yml
in buildspecs
22 - 1
buildspec-node14.yml
in buildspecs
22 - 1
buildspec.canary.yml
in buildspecs
19 - 1
AgentSink.ts
in src/sinks
83 4 1