-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade OTEL to 1.3.1 #341
Closed
Closed
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
a8c9628
:arrow_up: upgrade to 1.3.1
ryandens 9926079
:recycle: update ComponentInstaller to AgentListener
ryandens ccc721d
:recycle: refactor IgnoreMatcherProvider to IgnoredTypesConfigurer
ryandens d735b65
:recycle: refactor java-streams instrumentation
ryandens 6286b0f
:recycle: refactor ApacheClientInstrumentationModule to use new Instr…
ryandens ddf99c3
:recycle: refactor apache-httpasyncclient-4.1 to use new instrumentat…
ryandens 6a42e6d
:recycle: update grpc to use new instrumentation API
ryandens 08d9232
:recycle: update jaxrs-client-2.0 to use new instrumentation extensio…
ryandens b1eb1ff
:recycle: update servlet-3.0 to use new instrumentation extension API
ryandens 353f743
:recycle: update servlet test instrumentation
ryandens bca128a
:sparkles: add library to unshade the netty-4.0-all JAR
ryandens 7666d5f
:recycle: refactor netty-4.0 to use the unshaded jar library
ryandens 205f867
:sparkles: create project to unshade netty-4.1 otel dependency
ryandens 7261819
:recycle: refactor netty to use unsahded JAR
ryandens ae29dbe
:recycle: update usage of instrumentation api in okhttp module
ryandens 3d4f04e
:recycle: move configuration of instrumentation subproject dependenci…
ryandens b1ca343
:recycle: refactor unshade logic into plugin
ryandens 3fccdac
:bug: fix id of plugin for netty 4.1
ryandens 61cb08c
:bug: fix netty-4.1
ryandens d79103a
:recycle: refactor undertow-1.4 build to rely on unshaded otel JAR
ryandens ef36e29
:recycle: refactor undertow instrumentation to use new instrumentatio…
ryandens f4ebf0d
:truck: move vertx-web to dedicated folder
ryandens 7030f1e
:bug: include vertx-web instrumentation in instrumentation JAR
ryandens d6ca0ac
:recycle: make vertx depend on shaded jar
ryandens ca74d9d
:recycle: refactor vertx to use new instrumentation api
ryandens 4a7488c
:fire: remove shadow plugin version
ryandens 57f209d
:recycle: update grpc-shaded-netty-1.9 to use new instrumentation api
ryandens c458163
:arrow_up: upgrade byte buddy
ryandens cf93cf0
:white_check_mark: add grpc-netty dependency for runtime usage by the…
ryandens b53ebd8
:alembic: add extension-api to tooling dependencies
ryandens 232bbc7
:alembic: refactor buildSrc to match otel more
ryandens 75168f9
:recycle: update instrumentation projects to account for muzzle plugi…
ryandens 28ce72f
:fire: delete manual meta-inf entry for MuzzlePlugin'
ryandens 471b9bd
:fire: remove extension-api from dependent tasks for mzuzle
ryandens d00ee68
Revert ":fire: remove extension-api from dependent tasks for mzuzle"
ryandens a0f9297
Revert ":fire: delete manual meta-inf entry for MuzzlePlugin'"
ryandens db75901
Revert ":recycle: update instrumentation projects to account for muzz…
ryandens f474ef9
Revert ":alembic: refactor buildSrc to match otel more"
ryandens e130b21
:recycle: gradle lazy configuration
ryandens 4db30c6
:heavy_plus_sign: add bootstrap to testing-common
ryandens 1696d61
:alembic: initialize AgentClassLoader as app class loader
ryandens aa6cda8
:recycle: relocate shaded slf4j
ryandens 9fe46f5
:bug: unsshade otel httpasync module for testing
ryandens 80eba74
:bug: unshade apache-httpclient for testing purposes
ryandens e140e92
:bug: unshade grpc for testing purposes'
ryandens ce5fdf9
:recycle: refactor java-streams test instrumentation to match new ins…
ryandens b50154c
:bug: unshade jaxrs-client for testing purposes'
ryandens 2b7c74d
:bug: use unshaded netty for micronaut
ryandens b22598f
:bug: unshade spark instrumentation deps for testing purposes'
ryandens d7e005a
:bug: unshade struts instrumentation deps for testing purposes
ryandens 6043274
relocate netty lib usage
ryandens bc2ceb6
:bug: unshade okhttp instrumentation deps for testing purposes
ryandens 11caff7
:recycle: use unshaded servlet 3.0 instrumentation for testing purposes
ryandens 8b370cb
:bug: relocate shaded standalone instrumentation library
ryandens b342488
:heavy_plus_sign: add missing tracing library as dependency to servle…
ryandens e313943
:recycle: refactor servle-rw test instrumentation to use the new inst…
ryandens abcc11f
:fire: remove unused otel dependencies
ryandens 654086b
:bug: fix bug where muzzle found violations by restricting what is in…
ryandens 5f08199
:bug: fix missing async response bodies/headers as a result of a the …
ryandens e1039fa
:recycle: make sure request buffer gets reset
ryandens 932c014
:bug: fix bug where bad key was used in call depth map
ryandens a73795d
:recycle: add back in inheritance
ryandens b685d60
:bug: get client context from superclass volatile field
ryandens b278da7
:bug: fix bug where two traces are sent
ryandens 1ab19bf
:bug: fix flaky test
ryandens 3586a4b
recycle: levearge unshaded jaxrs library in insturmentation module
ryandens 21d85e8
:recycle: remove unneded changes to netty module
ryandens 9589e3a
Revert "recycle: levearge unshaded jaxrs library in insturmentation m…
ryandens ec65069
:arrow_up: upgrade OTEL api
ryandens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...Src/src/main/java/io/opentelemetry/instrumentation/gradle/OpenTelemetryUnShadePlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package io.opentelemetry.instrumentation.gradle; | ||
|
||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar; | ||
import org.gradle.api.Plugin; | ||
import org.gradle.api.Project; | ||
import org.gradle.api.plugins.JavaLibraryPlugin; | ||
|
||
/** | ||
* Plugin to encapsulate our rather odd practice of depending on a shaded instrumentation JAR | ||
* published by OpenTelemetry, un-shading the OTEL public API by relocating the packages to their | ||
* original location so we can use the utilities exposed in the not-shaded OTEL | ||
* instrumentation library classes. | ||
*/ | ||
public final class OpenTelemetryUnShadePlugin implements Plugin<Project> { | ||
|
||
@Override | ||
public void apply(final Project project) { | ||
project.getPlugins().apply(JavaLibraryPlugin.class); | ||
project.getPlugins().apply("com.github.johnrengelman.shadow"); | ||
project.getTasks().named("shadowJar", ShadowJar.class).configure(shadowJar -> { | ||
shadowJar.relocate("io.opentelemetry.javaagent.shaded.io.opentelemetry.api", | ||
"io.opentelemetry.api"); | ||
shadowJar.relocate("io.opentelemetry.javaagent.shaded.io.opentelemetry.context", | ||
"io.opentelemetry.context"); | ||
shadowJar.relocate("io.opentelemetry.javaagent.shaded.io.opentelemetry.semconv", | ||
"io.opentelemetry.semconv"); | ||
shadowJar.relocate("io.opentelemetry.javaagent.shaded.instrumentation.api", | ||
"io.opentelemetry.instrumentation.api"); | ||
shadowJar.relocate("io.opentelemetry.javaagent.slf4j", "org.slf4j"); | ||
}); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the upstream does not have
AutoInstrumentationPlugin.java
in 1.3x anymore.Shall we align more with the upstream and remove this file as well?