aws / aws-xray-sdk-go
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 52 files with 5,229 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (643 lines of code)
    • 5 medium size files (1,651 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,485 lines of code)
    • 36 very small files (1,450 lines of code)
0% | 12% | 31% | 28% | 27%
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
go0% | 12% | 32% | 28% | 26%
tf0% | 0% | 0% | 0% | 100%
tfvars0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
xray0% | 19% | 40% | 23% | 15%
strategy0% | 0% | 29% | 51% | 19%
daemoncfg0% | 0% | 0% | 100% | 0%
utils0% | 0% | 0% | 0% | 100%
awsplugins0% | 0% | 0% | 0% | 100%
header0% | 0% | 0% | 0% | 100%
terraform0% | 0% | 0% | 0% | 100%
internal0% | 0% | 0% | 0% | 100%
instrumentation0% | 0% | 0% | 0% | 100%
pattern0% | 0% | 0% | 0% | 100%
xraylog0% | 0% | 0% | 0% | 100%
sample-apps0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sql_context.go
in xray
643 36
segment.go
in xray
489 32
aws.go
in xray
365 21
centralized.go
in strategy/sampling
338 13
response_capturer.go
in xray
239 3
config.go
in xray
220 11
grpc.go
in xray
185 11
centralized_sampling_rule_manifest.go
in strategy/sampling
179 9
httptrace.go
in xray
174 12
default_exception_formatting_strategy.go
in strategy/exception
161 12
segment_model.go
in xray
160 10
handler.go
in xray
130 12
daemon_config.go
in daemoncfg
127 9
sampling_rule.go
in strategy/sampling
126 7
sql_go110.go
in xray
122 8
sampling_rule_manifest.go
in strategy/sampling
121 6
client.go
in xray
93 4
header.go
in header
90 5
default_emitter.go
in xray
88 5
ec2.go
in awsplugins/ec2
82 4
fasthttp.go
in xray
78 4
rand.go
in utils
73 10
context.go
in xray
72 9
lambda.go
in xray
62 5
eb.tf
in terraform
62 -
proxy.go
in strategy/sampling
59 3
awsv2.go
in instrumentation/awsv2
58 3
reservoir.go
in strategy/sampling
54 5
default_streaming_strategy.go
in xray
53 4
search_pattern.go
in pattern
52 2
xray_log.go
in xraylog
51 4
application.go
in sample-apps/http-server
49 3
logger.go
in internal/logger
49 12
localized.go
in strategy/sampling
46 4
capture.go
in xray
41 2
beanstalk.go
in awsplugins/beanstalk
29 2
default_context_missing.go
in strategy/ctxmissing
25 6
plugin.go
in internal/plugins
25 -
timer.go
in utils
24 3
ecs.go
in awsplugins/ecs
21 2
mock_clock.go
in utils
17 2
clock.go
in utils
15 2
mock_rand.go
in utils
15 3
variables.tf
in terraform
13 -
xray_error.go
in strategy/exception
12 2
sampling_attributes.go
in strategy/sampling
12 -
exception_formatting_strategy.go
in strategy/exception
8 -
emitter.go
in xray
6 -
streaming_strategy.go
in xray
5 -
context_missing.go
in strategy/ctxmissing
4 -
Files With Most Units (Top 20)
File# lines# units
sql_context.go
in xray
643 36
segment.go
in xray
489 32
aws.go
in xray
365 21
centralized.go
in strategy/sampling
338 13
default_exception_formatting_strategy.go
in strategy/exception
161 12
httptrace.go
in xray
174 12
handler.go
in xray
130 12
logger.go
in internal/logger
49 12
grpc.go
in xray
185 11
config.go
in xray
220 11
segment_model.go
in xray
160 10
rand.go
in utils
73 10
centralized_sampling_rule_manifest.go
in strategy/sampling
179 9
context.go
in xray
72 9
daemon_config.go
in daemoncfg
127 9
sql_go110.go
in xray
122 8
sampling_rule.go
in strategy/sampling
126 7
default_context_missing.go
in strategy/ctxmissing
25 6
sampling_rule_manifest.go
in strategy/sampling
121 6
header.go
in header
90 5
Files With Long Lines (Top 9)

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

File# lines# units# long lines
aws.go
in xray
365 21 6
segment.go
in xray
489 32 4
localized.go
in strategy/sampling
46 4 3
grpc.go
in xray
185 11 3
sql_context.go
in xray
643 36 3
application.go
in sample-apps/http-server
49 3 2
centralized.go
in strategy/sampling
338 13 1
lambda.go
in xray
62 5 1
ec2.go
in awsplugins/ec2
82 4 1