Skip to content

Commit

Permalink
Instrument tomcat executor (#3789)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Aug 7, 2021
1 parent f80d0ae commit 9df0686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ protected AbstractExecutorInstrumentation() {
"java.util.concurrent.ForkJoinPool",
"java.util.concurrent.ScheduledThreadPoolExecutor",
"java.util.concurrent.ThreadPoolExecutor",
"org.apache.tomcat.util.threads.ThreadPoolExecutor",
"org.eclipse.jetty.util.thread.QueuedThreadPool", // dispatch() is covered in the jetty
// module
"org.eclipse.jetty.util.thread.ReservedThreadExecutor",
Expand Down
8 changes: 4 additions & 4 deletions instrumentation/tomcat/tomcat-7.0/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ muzzle {
}

dependencies {
library("org.apache.tomcat.embed:tomcat-embed-core:7.0.4")
compileOnly("org.apache.tomcat.embed:tomcat-embed-core:7.0.4")
implementation(project(":instrumentation:tomcat:tomcat-common:javaagent"))
implementation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
// Make sure nothing breaks due to both 7.0 and 10.0 modules being present together
testInstrumentation(project(":instrumentation:tomcat:tomcat-10.0:javaagent"))

// Tests need at least version 9 to have necessary classes to configure the embedded tomcat...
// ... but not newer that version 10, because its servlet 5.
testLibrary("org.apache.tomcat.embed:tomcat-embed-core:[9.+, 10)")
testLibrary("org.apache.tomcat.embed:tomcat-embed-core:8.0.41")
testLibrary("org.apache.tomcat.embed:tomcat-embed-jasper:8.0.41")
latestDepTestLibrary("org.apache.tomcat.embed:tomcat-embed-core:[9.+, 10)")
latestDepTestLibrary("org.apache.tomcat.embed:tomcat-embed-jasper:[9.+, 10)")
}

0 comments on commit 9df0686

Please sign in to comment.