microsoft / ApplicationInsights-node.js
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 117 files with 7,791 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 11 medium size files (3,033 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,111 lines of code)
    • 92 very small files (2,647 lines of code)
0% | 0% | 38% | 27% | 33%
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% | 39% | 27% | 33%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
AutoCollection0% | 0% | 64% | 21% | 13%
Library0% | 0% | 35% | 46% | 18%
ROOT0% | 0% | 100% | 0% | 0%
AutoCollection/diagnostic-channel0% | 0% | 32% | 0% | 67%
Declarations0% | 0% | 0% | 74% | 25%
Bootstrap0% | 0% | 0% | 31% | 68%
Declarations/Contracts0% | 0% | 0% | 0% | 100%
TelemetryProcessors0% | 0% | 0% | 0% | 100%
Declarations/Metrics0% | 0% | 0% | 0% | 100%
Bootstrap/Helpers0% | 0% | 0% | 0% | 100%
Schema0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Sender.ts
in Library
378 10
Util.ts
in Library
323 25
EnvelopeFactory.ts
in Library
308 11
Statsbeat.ts
in AutoCollection
287 20
applicationinsights.ts
in root
272 20
Performance.ts
in AutoCollection
258 14
HttpRequestParser.ts
in AutoCollection
251 19
PreAggregatedMetrics.ts
in AutoCollection
249 16
SpanParser.ts
in AutoCollection/diagnostic-channel
249 5
CorrelationContextManager.ts
in AutoCollection
247 18
HttpRequests.ts
in AutoCollection
211 12
HttpDependencies.ts
in AutoCollection
190 6
NativePerformance.ts
in AutoCollection
180 9
QuickPulseEnvelopeFactory.ts
in Library
177 10
Config.ts
in Library
163 8
TelemetryClient.ts
in Library
159 15
JsonConfig.ts
in Library
154 3
Constants.ts
in Declarations
149 -
InternalAzureLogger.ts
in Library
144 7
QuickPulseStateManager.ts
in Library
142 11
HttpDependencyParser.ts
in AutoCollection
140 5
FileAccessControl.ts
in Library
137 8
CorrelationIdManager.ts
in Library
133 6
QuickPulseSender.ts
in Library
124 5
FileWriter.ts
in Bootstrap
119 8
Default.ts
in Bootstrap
98 6
Traceparent.ts
in Library
96 7
HeartBeat.ts
in AutoCollection
83 6
winston.sub.ts
in AutoCollection/diagnostic-channel
81 5
TelemetryType.ts
in Declarations/Contracts/TelemetryTypes
75 2
Exceptions.ts
in AutoCollection
74 4
PreAggregatedMetricsTelemetryProcessor.ts
in TelemetryProcessors
74 1
Channel.ts
in Library
65 4
AsyncHooksScopeManager.ts
in AutoCollection
64 6
AzureVirtualMachine.ts
in Library
63 1
DiagnosticLogger.ts
in Bootstrap
62 2
FileHelpers.ts
in Bootstrap/Helpers
58 3
bunyan.sub.ts
in AutoCollection/diagnostic-channel
57 2
EventHub.ts
in AutoCollection/diagnostic-channel/Azure
56 -
FileSystemHelper.ts
in Library
55 -
Tracestate.ts
in Library
55 3
ContextTagKeys.ts
in Declarations/Contracts/Generated
52 1
Interfaces.ts
in Declarations
52 -
generateSchema.ps1
in Schema
52 -
mysql.sub.ts
in AutoCollection/diagnostic-channel
50 1
azure-coretracing.sub.ts
in AutoCollection/diagnostic-channel
49 1
mongodb.sub.ts
in AutoCollection/diagnostic-channel
48 1
Context.ts
in Library
48 4
console.sub.ts
in AutoCollection/diagnostic-channel
47 2
postgres.sub.ts
in AutoCollection/diagnostic-channel
47 1
Files With Most Units (Top 20)
File# lines# units
Util.ts
in Library
323 25
Statsbeat.ts
in AutoCollection
287 20
applicationinsights.ts
in root
272 20
HttpRequestParser.ts
in AutoCollection
251 19
CorrelationContextManager.ts
in AutoCollection
247 18
PreAggregatedMetrics.ts
in AutoCollection
249 16
TelemetryClient.ts
in Library
159 15
Performance.ts
in AutoCollection
258 14
HttpRequests.ts
in AutoCollection
211 12
EnvelopeFactory.ts
in Library
308 11
QuickPulseStateManager.ts
in Library
142 11
QuickPulseEnvelopeFactory.ts
in Library
177 10
Sender.ts
in Library
378 10
NativePerformance.ts
in AutoCollection
180 9
FileWriter.ts
in Bootstrap
119 8
Config.ts
in Library
163 8
FileAccessControl.ts
in Library
137 8
InternalAzureLogger.ts
in Library
144 7
Traceparent.ts
in Library
96 7
AsyncHooksScopeManager.ts
in AutoCollection
64 6
Files With Long Lines (Top 20)

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

File# lines# units# long lines
applicationinsights.ts
in root
272 20 19
HttpRequests.ts
in AutoCollection
211 12 17
Statsbeat.ts
in AutoCollection
287 20 16
Performance.ts
in AutoCollection
258 14 13
Sender.ts
in Library
378 10 13
Exceptions.ts
in AutoCollection
74 4 10
HttpDependencies.ts
in AutoCollection
190 6 10
HttpRequestParser.ts
in AutoCollection
251 19 10
CorrelationContextManager.ts
in AutoCollection
247 18 8
QuickPulseSender.ts
in Library
124 5 8
PreAggregatedMetrics.ts
in AutoCollection
249 16 7
EnvelopeFactory.ts
in Library
308 11 7
TelemetryClient.ts
in Library
159 15 7
Util.ts
in Library
323 25 7
Config.ts
in Library
163 8 6
QuickPulseEnvelopeFactory.ts
in Library
177 10 5
QuickPulseStateManager.ts
in Library
142 11 5
Default.ts
in Bootstrap
98 6 4
HttpDependencyParser.ts
in AutoCollection
140 5 3
NativePerformance.ts
in AutoCollection
180 9 3