Skip to content
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

Move ServletContextPath to servlet-common:bootstrap #4824

Merged

Conversation

mateuszrzeszutek
Copy link
Member

Resolves #4317

Changes include:

  • A couple of jaxws "library" instrumentations (which weren't real library instrumentations) were removed and their code moved into their respective javaagent module
  • Renamed jsf-common:library to jsf-common:javaagent
  • Restlet library instrumentations are not using ServletContextPath anymore (there's no servlet library instrumentation so it makes no sense to use it there anyway)

instrumentation-api still contains ServerSpanNaming, but this particular class should perhaps be refactored into a general http.route utility in #442

@@ -17,14 +17,15 @@ muzzle {
}

configurations.configureEach {
if (!name.contains("muzzle")) {
// axis has a dependency on servlet api, get rid of it
if (name.contains("test")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -20,6 +20,8 @@ muzzle {
val versions: Map<String, String> by project

dependencies {
bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's nice to see/understand these dependencies better now

@mateuszrzeszutek mateuszrzeszutek merged commit 0bab0c2 into open-telemetry:main Dec 8, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the move-ServletContextPath branch December 8, 2021 14:59
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
…ry#4824)

* Move ServletContextPath to servlet-common:bootstrap

* fix tests

* Simplify ServletContextPath calls in restlet instrumentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move io.opentelemetry.instrumentation.api.servlet to servlet-common
2 participants