Commit d9370ea
authored
Fix OTel bridge behavior with multiple classloaders + improved activation (#2735)
* degug add classloader info
* test more versions + stricter tests
* minor refactor
* add external plugin test with otel
* minor cleanup
* properly size wrapper
* move wrapping to thread-local active stack
* cleanup
* improve javadoc + tune sizing
* finalize testing & bugfix
* update changelog
* fix misleading comment
* remove duplication
* clarify javadoc
* post-review changes1 parent df96649 commit d9370ea
File tree
23 files changed
+943
-69
lines changed- apm-agent-core/src
- main/java/co/elastic/apm/agent
- configuration
- impl
- transaction
- test/java/co/elastic/apm/agent/impl
- apm-agent-plugins/apm-opentelemetry
- apm-opentelemetry-plugin/src
- main/java/co/elastic/apm/agent/opentelemetry
- context
- sdk
- test/java/co/elastic/apm/agent/opentelemetry/sdk
- apm-opentelemetry-test/src/test/java/co/elastic/apm/opentelemetry
- integration-tests
- external-plugin-otel-test
- external-plugin-otel-test-app
- src
- main/java/testapp
- test/java
- external-plugin-otel-test-plugin1
- src/main
- java/co/elastic/apm/sample/plugin1
- resources/META-INF/services
- external-plugin-otel-test-plugin2
- src/main
- java/co/elastic/apm/sample/plugin2
- resources/META-INF/services
23 files changed
+943
-69
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
Lines changed: 44 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
232 | 237 | | |
233 | 238 | | |
234 | 239 | | |
235 | | - | |
| 240 | + | |
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
| |||
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
| |||
850 | 855 | | |
851 | 856 | | |
852 | 857 | | |
853 | | - | |
| 858 | + | |
854 | 859 | | |
855 | 860 | | |
856 | 861 | | |
| |||
967 | 972 | | |
968 | 973 | | |
969 | 974 | | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
970 | 998 | | |
971 | 999 | | |
972 | 1000 | | |
| |||
Lines changed: 62 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| 110 | + | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| |||
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
| |||
515 | 525 | | |
516 | 526 | | |
517 | 527 | | |
518 | | - | |
| 528 | + | |
519 | 529 | | |
520 | 530 | | |
521 | 531 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | 532 | | |
528 | 533 | | |
529 | 534 | | |
| |||
725 | 730 | | |
726 | 731 | | |
727 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
728 | 736 | | |
729 | 737 | | |
730 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
731 | 778 | | |
732 | 779 | | |
733 | 780 | | |
734 | 781 | | |
735 | 782 | | |
736 | 783 | | |
737 | 784 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | 785 | | |
742 | 786 | | |
743 | 787 | | |
744 | 788 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | 789 | | |
753 | 790 | | |
754 | | - | |
| 791 | + | |
755 | 792 | | |
756 | 793 | | |
757 | 794 | | |
758 | 795 | | |
759 | | - | |
| 796 | + | |
760 | 797 | | |
761 | 798 | | |
762 | 799 | | |
| |||
777 | 814 | | |
778 | 815 | | |
779 | 816 | | |
780 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
781 | 820 | | |
782 | 821 | | |
783 | | - | |
784 | | - | |
785 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
786 | 825 | | |
787 | 826 | | |
788 | 827 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
424 | 425 | | |
425 | | - | |
426 | | - | |
| 426 | + | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
0 commit comments