Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
amarziali committed Jul 11, 2024
1 parent ca62dad commit 2481985
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ configurations.matching({ it.name.startsWith('test') || it.name.startsWith('late

dependencies {
main_java17CompileOnly group: 'org.eclipse.jetty', name: 'jetty-client', version: '12.0.0'

//because contains some instrumentation that still apply
testImplementation(project(':dd-java-agent:instrumentation:jetty-client:jetty-client-9.1'))
// to test conflicts
testImplementation(project(':dd-java-agent:instrumentation:jetty-client:jetty-client-9.1'))
testImplementation(project(':dd-java-agent:instrumentation:jetty-client:jetty-client-10.0'))

testImplementation(project(path:':dd-java-agent:testing', configuration:'shadow')) {
// explicitly declared below.
exclude group: 'org.eclipse.jetty'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public void onBegin(Response response) {
@Override
public void onComplete(Result result) {
if (delegate instanceof Response.CompleteListener) {
// this probably does the wrong thing, but preserves old behaviour and is consistent
// with other http clients with completion callback registration
try (AgentScope scope = activate(parent)) {
((Response.CompleteListener) delegate).onComplete(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ abstract class JettyClientTest extends HttpClientTest {
try {
def resp = req.send()
blockUntilChildSpansFinished(1)
//assert propagatesContext
return resp.status
} catch (ExecutionException ex) {
if (ex.cause instanceof HttpResponseException) {
Expand Down

0 comments on commit 2481985

Please sign in to comment.