elastic / apm-agent-java
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system8% (4,741 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
java8% (4,625 lines)
yaml46% (116 lines)
Duplication per Component (primary)
apm-agent-plugins15% (4,061 lines)
apm-agent-core1% (198 lines)
apm-agent-api26% (192 lines)
ROOT46% (116 lines)
apm-agent-plugin-sdk3% (67 lines)
apm-agent-benchmarks2% (58 lines)
apm-agent-common3% (21 lines)
apm-opentracing5% (16 lines)
apm-agent-tracer<1% (12 lines)
apm-agent-cached-lookup-key0% (0 lines)
elastic-apm-agent0% (0 lines)
elastic-apm-agent-premain0% (0 lines)
apm-agent-attach-cli0% (0 lines)
apm-agent-lambda-layer0% (0 lines)
elastic-apm-agent-java80% (0 lines)
apm-agent-bootstrap0% (0 lines)
apm-agent-attach0% (0 lines)

Duplication Between Components (50+ lines)

G apm-agent-core apm-agent-core apm-agent-plugin-sdk apm-agent-plugin-sdk apm-agent-core--apm-agent-plugin-sdk 80

Download: SVG DOT (open online Graphviz editor)

Open 2D force graph... Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 316 duplicates...
Size#FoldersFilesLinesCode
102 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
36:183 (96%)
36:183 (96%)
view
82 x 2 apm-agent-plugins/apm-se...m/agent/servlet/adapter
apm-agent-plugins/apm-se...m/agent/servlet/adapter
109:245 (53%)
123:259 (50%)
view
54 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
71:181 (81%)
70:180 (81%)
view
45 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
103:173 (55%)
101:171 (55%)
view
40 x 2 apm-agent-core/src/main/.../elastic/apm/agent/util
apm-agent-plugin-sdk/src...agent/sdk/internal/util
63:117 (67%)
39:93 (90%)
view
31 x 2 apm-agent-plugins/apm-se...m/agent/servlet/adapter
apm-agent-plugins/apm-se...m/agent/servlet/adapter
54:100 (20%)
65:111 (19%)
view
30 x 2 apm-agent-plugins/apm-aw...apm/agent/awssdk/common
apm-agent-plugins/apm-ra...stic/apm/agent/rabbitmq
118:165 (34%)
112:159 (36%)
view
27 x 2 apm-agent-plugins/apm-aw...apm/agent/awssdk/common
apm-agent-plugins/apm-ra...stic/apm/agent/rabbitmq
72:114 (31%)
67:109 (32%)
view
24 x 2 apm-agent-plugins/apm-se...m/agent/servlet/adapter
apm-agent-plugins/apm-se...m/agent/servlet/adapter
250:287 (15%)
264:301 (14%)
view
23 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
445:501 (6%)
445:501 (6%)
view
22 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
586:623 (5%)
586:623 (5%)
view
22 x 2 apm-agent-api/src/main/java/co/elastic/apm/api
apm-agent-api/src/main/java/co/elastic/apm/api
109:145 (15%)
123:162 (18%)
view
21 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
43:79 (25%)
41:77 (25%)
view
21 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
801:839 (5%)
801:839 (5%)
view
21 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
77:108 (36%)
77:108 (36%)
view
21 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
384:443 (5%)
384:443 (5%)
view
19 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
721:753 (4%)
718:750 (4%)
view
19 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
187:230 (5%)
187:230 (5%)
view
19 x 2 apm-agent-plugins/apm-ok...lastic/apm/agent/okhttp
apm-agent-plugins/apm-ok...lastic/apm/agent/okhttp
90:121 (27%)
87:120 (26%)
view
18 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
678:716 (4%)
675:713 (4%)
view
18 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
284:321 (4%)
284:321 (4%)
view
18 x 2 apm-agent-plugins/apm-js...o/elastic/apm/agent/jsf
apm-agent-plugins/apm-js...o/elastic/apm/agent/jsf
40:61 (72%)
40:61 (72%)
view
18 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
334:374 (4%)
334:374 (4%)
view
17 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
115:174 (4%)
115:174 (4%)
view
17 x 2 apm-agent-plugins/apm-ok...lastic/apm/agent/okhttp
apm-agent-plugins/apm-ok...lastic/apm/agent/okhttp
82:105 (36%)
79:102 (36%)
view
17 x 2 apm-agent-plugins/apm-ka.../apm/agent/kafka/helper
apm-agent-plugins/apm-ra...stic/apm/agent/rabbitmq
91:119 (20%)
94:122 (20%)
view
17 x 2 apm-agent-api/src/main/java/co/elastic/apm/api
apm-agent-api/src/main/java/co/elastic/apm/api
123:154 (22%)
88:117 (16%)
view
16 x 2 apm-agent-plugins/apm-se...astic/apm/agent/servlet
apm-agent-plugins/apm-ve...elastic/apm/agent/vertx
118:136 (9%)
68:86 (19%)
view
16 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
201:235 (3%)
200:234 (3%)
view
16 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
762:797 (4%)
762:797 (4%)
view
15 x 2 apm-agent-plugins/apm-re...astic/apm/agent/lettuce
apm-agent-plugins/apm-re...astic/apm/agent/lettuce
55:73 (62%)
72:90 (50%)
view
15 x 2 apm-agent-plugins/apm-se...astic/apm/agent/servlet
apm-agent-plugins/apm-se...astic/apm/agent/servlet
35:53 (78%)
36:54 (78%)
view
15 x 2 apm-agent-api/src/main/java/co/elastic/apm/api
apm-agent-api/src/main/java/co/elastic/apm/api
161:184 (14%)
224:247 (10%)
view
15 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
69:90 (35%)
69:90 (35%)
view
15 x 2 ROOT
ROOT
65:81 (6%)
99:115 (6%)
view
15 x 2 ROOT
ROOT
27:43 (6%)
65:81 (6%)
view
15 x 2 ROOT
ROOT
27:43 (6%)
99:115 (6%)
view
14 x 2 apm-agent-api/src/main/java/co/elastic/apm/api
apm-agent-api/src/main/java/co/elastic/apm/api
85:111 (13%)
145:171 (10%)
view
14 x 2 apm-agent-api/src/main/java/co/elastic/apm/api
apm-agent-api/src/main/java/co/elastic/apm/api
107:128 (13%)
173:194 (10%)
view
14 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
59:81 (45%)
59:81 (45%)
view
13 x 2 apm-agent-api/src/main/java/co/elastic/apm/api
apm-agent-api/src/main/java/co/elastic/apm/api
48:68 (9%)
56:76 (11%)
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
473:493 (3%)
471:491 (3%)
view
13 x 2 apm-agent-plugins/apm-jd.../elastic/apm/agent/jdbc
apm-agent-plugins/apm-jd.../elastic/apm/agent/jdbc
150:166 (7%)
286:302 (7%)
view
13 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
27:46 (100%)
27:46 (100%)
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
843:872 (3%)
843:872 (3%)
view
13 x 2 apm-agent-api/src/main/java/co/elastic/apm/api
apm-agent-api/src/main/java/co/elastic/apm/api
123:147 (17%)
148:171 (9%)
view
13 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
82:99 (16%)
80:97 (16%)
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
966:989 (3%)
966:989 (3%)
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
550:575 (3%)
550:575 (3%)
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
390:430 (3%)
388:428 (3%)
view
Duplicated Units
The list of top 50 duplicated units.
See data for all 56 unit duplicates...
Size#FoldersFilesLinesCode
31 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
137:174 
138:175 
view
27 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
456:489 
456:489 
view
26 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
282:316 
282:316 
view
20 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
602:626 
602:626 
view
20 x 2 apm-agent-plugins/apm-se...astic/apm/agent/servlet
apm-agent-plugins/apm-ve...elastic/apm/agent/vertx
117:140 
67:90 
view
19 x 2 apm-agent-plugins/apm-ok...lastic/apm/agent/okhttp
apm-agent-plugins/apm-ok...lastic/apm/agent/okhttp
81:101 
78:98 
view
16 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
332:353 
332:353 
view
15 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
208:225 
208:225 
view
14 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
185:203 
185:203 
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
736:752 
739:755 
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
247:264 
247:264 
view
13 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
821:837 
821:837 
view
12 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
64:83 
64:83 
view
12 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
114:129 
112:127 
view
11 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
615:630 
618:633 
view
11 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
909:924 
914:929 
view
11 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
975:990 
975:990 
view
10 x 2 apm-agent-plugins/apm-es...agent/esrestclient/v6_4
apm-agent-plugins/apm-es...agent/esrestclient/v5_6
67:78 
54:65 
view
10 x 2 apm-agent-plugins/apm-js...o/elastic/apm/agent/jsf
apm-agent-plugins/apm-js...o/elastic/apm/agent/jsf
45:56 
45:56 
view
10 x 2 apm-agent-plugin-sdk/src...agent/sdk/internal/util
apm-agent-core/src/main/.../elastic/apm/agent/util
40:51 
64:75 
view
9 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
53:63 
53:63 
view
9 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
155:165 
155:165 
view
9 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
167:177 
167:177 
view
9 x 2 apm-agent-plugin-sdk/src...agent/sdk/internal/util
apm-agent-core/src/main/.../elastic/apm/agent/util
73:83 
97:107 
view
8 x 2 apm-agent-plugins/apm-re...astic/apm/agent/lettuce
apm-agent-plugins/apm-re...astic/apm/agent/lettuce
75:84 
58:67 
view
8 x 2 apm-agent-plugins/apm-ap...tic/apm/agent/pluginapi
apm-agent-plugins/apm-op...apm/agent/opentelemetry
120:129 
162:171 
view
8 x 4 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
937:948 
642:652 
942:953 
642:652 
view
8 x 4 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
998:1009 
695:705 
1003:1014 
695:705 
view
8 x 4 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
1043:1054 
733:743 
1048:1059 
733:743 
view
8 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
548:559 
548:559 
view
8 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
41:50 
41:50 
view
8 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
66:75 
66:75 
view
8 x 2 apm-agent-plugins/apm-se...pm/agent/servlet/helper
apm-agent-plugins/apm-se...pm/agent/servlet/helper
78:87 
78:87 
view
8 x 2 apm-agent-plugins/apm-jm...c/apm/agent/jms/jakarta
apm-agent-plugins/apm-jm...tic/apm/agent/jms/javax
79:89 
79:89 
view
8 x 2 apm-agent-plugins/apm-ka.../apm/agent/kafka/helper
apm-agent-plugins/apm-ra...stic/apm/agent/rabbitmq
59:68 
50:59 
view
8 x 2 apm-agent-plugin-sdk/src...agent/sdk/internal/util
apm-agent-core/src/main/.../elastic/apm/agent/util
86:95 
110:119 
view
7 x 4 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
839:849 
901:910 
844:854 
901:910 
view
7 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
113:122 
113:122 
view
7 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
529:538 
529:538 
view
7 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
561:570 
561:570 
view
7 x 2 apm-agent-plugins/apm-ra...stic/apm/agent/rabbitmq
apm-agent-plugins/apm-ra...stic/apm/agent/rabbitmq
76:84 
125:133 
view
6 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
224:232 
225:233 
view
6 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
328:335 
329:336 
view
6 x 4 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
395:403 
391:399 
397:405 
391:399 
view
6 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
408:416 
410:418 
view
6 x 4 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
421:429 
417:425 
423:431 
417:425 
view
6 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
358:365 
358:365 
view
6 x 2 apm-agent-plugins/apm-pr...nt/profiler/collections
apm-agent-plugins/apm-pr...nt/profiler/collections
404:412 
404:412 
view
6 x 2 apm-agent-plugins/apm-mo...ic/apm/agent/mongodb/v4
apm-agent-plugins/apm-mo...ic/apm/agent/mongodb/v3
76:83 
81:88 
view
6 x 2 apm-agent-plugins/apm-ap...nt/httpclient/v5/helper
apm-agent-plugins/apm-ap...nt/httpclient/v4/helper
50:57 
62:70 
view