aws-samples / one-observability-demo
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 165 files with 10,951 lines of code.
    • 0 very long files (0 lines of code)
    • 4 long files (2,136 lines of code)
    • 2 medium size files (575 lines of codeclsfd_ftr_w_mp_ins)
    • 24 small files (3,211 lines of code)
    • 135 very small files (5,029 lines of code)
0% | 19% | 5% | 29% | 45%
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
yaml0% | 60% | 11% | 17% | 10%
ts0% | 50% | 0% | 14% | 34%
yml0% | 0% | 81% | 0% | 18%
go0% | 0% | 0% | 42% | 57%
cs0% | 0% | 0% | 30% | 69%
java0% | 0% | 0% | 41% | 58%
css0% | 0% | 0% | 72% | 27%
cshtml0% | 0% | 0% | 31% | 68%
js0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
PetAdoptions/cdk0% | 23% | 8% | 27% | 39%
ROOT0% | 97% | 0% | 0% | 3%
PetAdoptions/petsite0% | 0% | 0% | 43% | 56%
PetAdoptions/payforadoption-go0% | 0% | 0% | 43% | 56%
PetAdoptions/petlistadoptions-go0% | 0% | 0% | 39% | 60%
PetAdoptions/petsearch-java0% | 0% | 0% | 40% | 59%
PetAdoptions/petsearch0% | 0% | 0% | 41% | 58%
PetAdoptions/payforadoption0% | 0% | 0% | 39% | 60%
PetAdoptions/petlistadoptions0% | 0% | 0% | 0% | 100%
PetAdoptions/trafficgenerator0% | 0% | 0% | 0% | 100%
PetAdoptions/petstatusupdater0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cloud9-cfn.yaml
in root
582 -
prometheus-eks.yaml
in PetAdoptions/cdk/pet_stack/resources
539 -
cwagent-fluent-bit-quickstart.yaml
in PetAdoptions/cdk/pet_stack/resources
510 -
services.ts
in PetAdoptions/cdk/pet_stack/lib
505 3
cwagent-ecs-prometheus-metric-for-awsvpc.yaml
in PetAdoptions/cdk/pet_stack/resources
312 -
detmon-cwagent-cfn.yml
in PetAdoptions/cdk/pet_stack/resources
263 -
repository.go
in PetAdoptions/payforadoption-go/payforadoption
189 8
repository.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go/payforadoption
189 8
crds.yaml
in PetAdoptions/cdk/pet_stack/resources/load_balancer
185 -
amp-eks-adot-prometheus-daemonset.yaml
in PetAdoptions/cdk/pet_stack/resources
164 -
SearchController.java
in PetAdoptions/petsearch-java/src/main/java/ca/petsearch/controllers
159 11
SearchController.java
in PetAdoptions/cdk/pet_stack/resources/microservices/petsearch-java/src/main/java/ca/petsearch/controllers
159 11
ecs-service.ts
in PetAdoptions/cdk/pet_stack/lib/services
148 3
petstyles.css
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/wwwroot/css
143 -
petstyles.css
in PetAdoptions/petsite/petsite/wwwroot/css
143 -
HomeController.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Controllers
141 5
HomeController.cs
in PetAdoptions/petsite/petsite/Controllers
141 5
SearchController.cs
in PetAdoptions/petsearch/petsearch/Controllers
122 3
transport.go
in PetAdoptions/payforadoption-go/payforadoption
119 8
transport.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go/payforadoption
119 8
PaymentController.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Controllers
116 7
PaymentController.cs
in PetAdoptions/petsite/petsite/Controllers
116 7
repository.go
in PetAdoptions/cdk/pet_stack/resources/microservices/petlistadoptions-go/petlistadoptions
114 3
repository.go
in PetAdoptions/petlistadoptions-go/petlistadoptions
114 3
setup-ssm-agent.yaml
in PetAdoptions/cdk/pet_stack/resources
108 -
HomeController.cs
in PetAdoptions/payforadoption/PayForAdoption/Controllers
108 6
cshtml
Index.cshtml
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Views/Adoption
104 -
cshtml
Index.cshtml
in PetAdoptions/petsite/petsite/Views/Adoption
104 -
main.go
in PetAdoptions/cdk/pet_stack/resources/microservices/petlistadoptions-go
103 2
main.go
in PetAdoptions/petlistadoptions-go
103 2
config.go
in PetAdoptions/cdk/pet_stack/resources/microservices/petlistadoptions-go
100 4
config.go
in PetAdoptions/petlistadoptions-go
100 4
AdoptionListController.cs
in PetAdoptions/petlistadoptions/petlistadoptions/Controllers
100 2
xray-daemon-config.yaml
in PetAdoptions/cdk/pet_stack/resources/k8s_petsite
94 -
config.go
in PetAdoptions/payforadoption-go
93 4
config.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go
93 4
service.go
in PetAdoptions/payforadoption-go/payforadoption
92 6
service.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go/payforadoption
92 6
middlewares.go
in PetAdoptions/payforadoption-go/payforadoption
88 4
middlewares.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go/payforadoption
88 4
applications.ts
in PetAdoptions/cdk/pet_stack/lib
86 3
transport.go
in PetAdoptions/cdk/pet_stack/resources/microservices/petlistadoptions-go/petlistadoptions
86 7
SystemsManagerConfigurationProviderWithReload.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite
86 6
transport.go
in PetAdoptions/petlistadoptions-go/petlistadoptions
86 7
SystemsManagerConfigurationProviderWithReload.cs
in PetAdoptions/petsite/petsite
86 6
main.go
in PetAdoptions/payforadoption-go
83 2
main.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go
83 2
Worker.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/trafficgenerator/trafficgenerator
83 4
Worker.cs
in PetAdoptions/trafficgenerator/trafficgenerator
83 4
middlewares.go
in PetAdoptions/cdk/pet_stack/resources/microservices/petlistadoptions-go/petlistadoptions
72 4
Files With Most Units (Top 20)
File# lines# units
SearchController.java
in PetAdoptions/petsearch-java/src/main/java/ca/petsearch/controllers
159 11
SearchController.java
in PetAdoptions/cdk/pet_stack/resources/microservices/petsearch-java/src/main/java/ca/petsearch/controllers
159 11
Pet.java
in PetAdoptions/petsearch-java/src/main/java/ca/petsearch/controllers
48 8
transport.go
in PetAdoptions/payforadoption-go/payforadoption
119 8
repository.go
in PetAdoptions/payforadoption-go/payforadoption
189 8
Pet.java
in PetAdoptions/cdk/pet_stack/resources/microservices/petsearch-java/src/main/java/ca/petsearch/controllers
48 8
transport.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go/payforadoption
119 8
repository.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go/payforadoption
189 8
WebConfig.java
in PetAdoptions/petsearch-java/src/main/java/ca/petsearch
60 7
WebConfig.java
in PetAdoptions/cdk/pet_stack/resources/microservices/petsearch-java/src/main/java/ca/petsearch
60 7
transport.go
in PetAdoptions/cdk/pet_stack/resources/microservices/petlistadoptions-go/petlistadoptions
86 7
PaymentController.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Controllers
116 7
transport.go
in PetAdoptions/petlistadoptions-go/petlistadoptions
86 7
PaymentController.cs
in PetAdoptions/petsite/petsite/Controllers
116 7
service.go
in PetAdoptions/payforadoption-go/payforadoption
92 6
service.go
in PetAdoptions/cdk/pet_stack/resources/microservices/payforadoption-go/payforadoption
92 6
SystemsManagerConfigurationProviderWithReload.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite
86 6
HomeController.cs
in PetAdoptions/payforadoption/PayForAdoption/Controllers
108 6
SystemsManagerConfigurationProviderWithReload.cs
in PetAdoptions/petsite/petsite
86 6
endpoint.go
in PetAdoptions/payforadoption-go/payforadoption
40 5
Files With Long Lines (Top 20)

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

File# lines# units# long lines
services.ts
in PetAdoptions/cdk/pet_stack/lib
505 3 25
applications.ts
in PetAdoptions/cdk/pet_stack/lib
86 3 10
amp_ingest_kubecost_override_values.yaml
in PetAdoptions/cdk/pet_stack/resources
41 - 10
prometheus-eks.yaml
in PetAdoptions/cdk/pet_stack/resources
539 - 7
cwagent-ecs-prometheus-metric-for-awsvpc.yaml
in PetAdoptions/cdk/pet_stack/resources
312 - 7
buildspec.yml
in PetAdoptions/cdk/pet_stack
20 - 6
AdoptionController.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Controllers
68 4 6
AdoptionController.cs
in PetAdoptions/petsite/petsite/Controllers
68 4 6
cshtml
Index.cshtml
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Views/Adoption
104 - 5
cshtml
Index.cshtml
in PetAdoptions/petsite/petsite/Views/Adoption
104 - 5
SearchController.cs
in PetAdoptions/petsearch/petsearch/Controllers
122 3 5
cloud9-cfn.yaml
in root
582 - 4
stepfn.ts
in PetAdoptions/cdk/pet_stack/lib/services
65 2 4
PaymentController.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Controllers
116 7 4
HomeController.cs
in PetAdoptions/cdk/pet_stack/resources/microservices/petsite/petsite/Controllers
141 5 4
cwagent-fluent-bit-quickstart.yaml
in PetAdoptions/cdk/pet_stack/resources
510 - 4
PaymentController.cs
in PetAdoptions/petsite/petsite/Controllers
116 7 4
HomeController.cs
in PetAdoptions/petsite/petsite/Controllers
141 5 4
buildspec.yml
in root
18 - 3
SearchController.java
in PetAdoptions/petsearch-java/src/main/java/ca/petsearch/controllers
159 11 3