Commit ebfda74
authored
Upgrade otel 1 4 1 (#345)
* ⬆️ upgrade to 1.3.1
* ♻️ update ComponentInstaller to AgentListener
* ♻️ refactor IgnoreMatcherProvider to IgnoredTypesConfigurer
* ♻️ refactor java-streams instrumentation
* ♻️ refactor ApacheClientInstrumentationModule to use new Instrumentation API
* ♻️ refactor apache-httpasyncclient-4.1 to use new instrumentation api and fix usage of DelegatingRequestProducer
* ♻️ update grpc to use new instrumentation API
* ♻️ update jaxrs-client-2.0 to use new instrumentation extension API and hardcode string
* ♻️ update servlet-3.0 to use new instrumentation extension API
* ♻️ update servlet test instrumentation
* ✨ add library to unshade the netty-4.0-all JAR
* ♻️ refactor netty-4.0 to use the unshaded jar library
* ✨ create project to unshade netty-4.1 otel dependency
* ♻️ refactor netty to use unsahded JAR
* ♻️ update usage of instrumentation api in okhttp module
* ♻️ move configuration of instrumentation subproject dependencies to plugin
* ♻️ refactor unshade logic into plugin
* 🐛 fix id of plugin for netty 4.1
* 🐛 fix netty-4.1
* ♻️ refactor undertow-1.4 build to rely on unshaded otel JAR
* ♻️ refactor undertow instrumentation to use new instrumentation api
* 🚚 move vertx-web to dedicated folder
* 🐛 include vertx-web instrumentation in instrumentation JAR
* ♻️ make vertx depend on shaded jar
* ♻️ refactor vertx to use new instrumentation api
* 🔥 remove shadow plugin version
* ♻️ update grpc-shaded-netty-1.9 to use new instrumentation api
* ⬆️ upgrade byte buddy
* ✅ add grpc-netty dependency for runtime usage by the grpc client
* ⚗️ add extension-api to tooling dependencies
* ⚗️ refactor buildSrc to match otel more
* ♻️ update instrumentation projects to account for muzzle plugin being ported to java
* 🔥 delete manual meta-inf entry for MuzzlePlugin'
* 🔥 remove extension-api from dependent tasks for mzuzle
* Revert "🔥 remove extension-api from dependent tasks for mzuzle"
This reverts commit 471b9bd.
* Revert ":fire: delete manual meta-inf entry for MuzzlePlugin'"
This reverts commit 28ce72f.
* Revert ":recycle: update instrumentation projects to account for muzzle plugin being ported to java"
This reverts commit 75168f9.
* Revert ":alembic: refactor buildSrc to match otel more"
This reverts commit 232bbc7.
* ♻️ gradle lazy configuration
* ➕ add bootstrap to testing-common
* ⚗️ initialize AgentClassLoader as app class loader
* ♻️ relocate shaded slf4j
* 🐛 unsshade otel httpasync module for testing
* 🐛 unshade apache-httpclient for testing purposes
* 🐛 unshade grpc for testing purposes'
* ♻️ refactor java-streams test instrumentation to match new instrumentation api
* 🐛 unshade jaxrs-client for testing purposes'
* 🐛 use unshaded netty for micronaut
* 🐛 unshade spark instrumentation deps for testing purposes'
* 🐛 unshade struts instrumentation deps for testing purposes
* relocate netty lib usage
* 🐛 unshade okhttp instrumentation deps for testing purposes
* ♻️ use unshaded servlet 3.0 instrumentation for testing purposes
* 🐛 relocate shaded standalone instrumentation library
* ➕ add missing tracing library as dependency to servlet-3.0
* ♻️ refactor servle-rw test instrumentation to use the new instrumentation API
* 🔥 remove unused otel dependencies
* 🐛 fix bug where muzzle found violations by restricting what is in the shaded module
* 🐛 fix missing async response bodies/headers as a result of a the span being marked as ended earlier in otel pr 2992
* ♻️ make sure request buffer gets reset
* 🐛 fix bug where bad key was used in call depth map
* ♻️ add back in inheritance
* 🐛 get client context from superclass volatile field
* 🐛 fix bug where two traces are sent
* 🐛 fix flaky test
* recycle: levearge unshaded jaxrs library in insturmentation module
* ♻️ remove unneded changes to netty module
* Revert "recycle: levearge unshaded jaxrs library in insturmentation module"
This reverts commit 3586a4b.
* ⬆️ upgrade otel
* ♻️ rename instrumentation api artifact dependency
* ♻️ update otel-extensions to account for changes in the upstream API
* ♻️ refactor usages of CallDepthThreadLocalMap and safeHasSuperType
* 🐛 fix compile errors with apachehttpasync module
* 🐛 fix compile errors with apache-httpclient
* 🐛 fix compile errors with grpc-1.6 instrumentation module
* 🐛 fix compile errors with jaxrs-client
* 🐛 fix compile errors with spark
* 🐛 fix compile errors with servlet-rw
* 🐛 fix compile errors with servlet-3.0
* 🐛 fix compile bugs with struts-2.3
* ♻️ fix compile errors in okhttp
* 🐛 fxi netty compile errors
* 🐛 fix micronaut compile errors'
* 🐛 fix bug with undertow compile
* 🐛 fix compile bug with vertx
* ⬆️ upgrade to 1.4.1
* :WIP functioning build script
* 🚧 semi-working apache http async client module
* Revert "🚧 semi-working apache http async client module"
This reverts commit e44c35b.
* Revert ":WIP functioning build script"
This reverts commit 31a95b4.
* 💩 new build logic
* 🔥 disable non-otlp receivers as they dont seem to work anymore
* 🐛 fix bug where InstrumentationHolder is no longer set
* 🐛 set contextStorageProvider
* 🐛 put in bootstrap classes into test source set
* 🔥 delete unshade plugin
* ♻️ use contrib image
* 🔥 remove jaeger reciever
* 🔥 remove muzzle comment
* 💡 document workaroudn for OpenTelemetryInstaller
* 💡 document workaround
* 🔥 remove extra build scripts1 parent 994bef6 commit ebfda74
File tree
83 files changed
+848
-625
lines changed- buildSrc
- src/main/java/io/opentelemetry/instrumentation/gradle
- bytebuddy
- instrumentation
- apache-httpasyncclient-4.1
- src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/apachehttpasyncclient
- apache-httpclient-4.0
- src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/apachehttpclient/v4_0
- grpc-1.6
- src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/grpc/v1_6
- client
- server
- grpc-shaded-netty-1.9/src/main/java/io/opentelemetry/javaagent/instrumentation/shaded/netty
- java-streams/src
- main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/java
- inputstream
- outputstream
- test/java/io/opentelemetry/javaagent/instrumentation/hypertrace/java
- jaxrs-client-2.0
- src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/jaxrs/v2_0
- micronaut-1.0
- netty
- netty-4.0
- src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/netty/v4_0
- netty-4.1
- src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/netty/v4_1
- okhttp/okhttp-3.0
- src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/okhttp/v3_0
- servlet
- servlet-3.0
- src
- main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/v3_0/nowrapping
- async
- request
- response
- test/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/v3_0/nowrapping
- request
- response
- servlet-rw/src
- main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/rw
- reader
- writer
- test/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/rw
- reader
- writer
- spark-2.3
- spring/spring-webflux-5.0
- undertow
- undertow-1.4/src
- main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/undertow/v1_4
- test/java/io/opentelemetry/javaagent/bootstrap/undertow
- undertow-servlet-1.4/src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/undertow/servlet/v1_4
- vertx/vertx-web-3.0
- src
- main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/vertx
- test/java/io/opentelemetry/javaagent/instrumentation/hypertrace/vertx
- javaagent-bootstrap
- javaagent-core
- javaagent-tooling
- javaagent
- otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions
- config
- shaded-protobuf-java-util
- smoke-tests
- src/test
- groovy/org/hypertrace/agent/smoketest
- java/org/hypertrace/agent/smoketest
- resources
- testing-bootstrap
- testing-common
- src/testFixtures/java/org/hypertrace/agent/testing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
83 files changed
+848
-625
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
46 | 88 | | |
47 | 89 | | |
48 | 90 | | |
| |||
Lines changed: 63 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 69 | | |
77 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
78 | 97 | | |
79 | 98 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
101 | 130 | | |
102 | 131 | | |
103 | 132 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
0 commit comments