Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ apply from: "$rootDir/gradle/java.gradle"
dependencies {
testImplementation project(':dd-java-agent:instrumentation:rs:jax-rs:jax-rs-annotations:jax-rs-annotations-2.0')
testImplementation project(':dd-java-agent:instrumentation:servlet:javax-servlet:javax-servlet-3.0')
// Dropwizard 0.8 transitively depends on Jetty 9.2.9, so load the jetty-server
// instrumentation modules whose muzzle ranges cover that version, matching the
// production classpath:
// - jetty-server-9.0 applies to [9, 10) and owns the request span
// - jetty-server-9.0.4 applies to [9.0.4, 9.3.0.M1) and owns the AppSec
// response-commit hook used by Jetty 9.2.x
// Without these, the server span is owned by Servlet3Decorator.
testImplementation project(':dd-java-agent:instrumentation:jetty:jetty-server:jetty-server-9.0')
testImplementation project(':dd-java-agent:instrumentation:jetty:jetty-server:jetty-server-9.0.4')

// First version with DropwizardTestSupport:
testImplementation group: 'io.dropwizard', name: 'dropwizard-testing', version: '0.8.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ class DropwizardTest extends HttpServerTest<DropwizardTestSupport> {

@Override
String expectedIntegrationName() {
"java-web-servlet"
// In production, Jetty's server instrumentation creates the request span before Servlet3
// gets a chance to. Servlet3Advice detects the existing span and skips, so the span is
// owned by jetty-server, not java-web-servlet.
"jetty-server"
}

@Override
Expand Down
Loading