Skip to content

Commit

Permalink
Enable running with indy for jodd-http-4.2 (#9898)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Nov 17, 2023
1 parent 9fb5b3f commit a3b0e31
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins {
id("otel.java-conventions")
}

dependencies {
testImplementation("org.jodd:jodd-http:4.2.0")
testImplementation(project(":instrumentation:jodd-http-4.2:javaagent"))
testImplementation(project(":instrumentation-api"))
testImplementation(project(":instrumentation-api-semconv"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ public JoddHttpInstrumentationModule() {
super("jodd-http", "jodd-http-4.2");
}

@Override
public boolean isIndyModule() {
// JoddHttpHttpAttributesGetterTest is not an agent test, with indy it can't access
// JoddHttpHttpAttributesGetter
return false;
}

@Override
public List<TypeInstrumentation> typeInstrumentations() {
return Collections.singletonList(new JoddHttpInstrumentation());
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ include(":instrumentation:jms:jms-common:javaagent-unit-tests")
include(":instrumentation:jmx-metrics:javaagent")
include(":instrumentation:jmx-metrics:library")
include(":instrumentation:jodd-http-4.2:javaagent")
include(":instrumentation:jodd-http-4.2:javaagent-unit-tests")
include(":instrumentation:jsf:jsf-javax-common:javaagent")
include(":instrumentation:jsf:jsf-javax-common:testing")
include(":instrumentation:jsf:jsf-jakarta-common:javaagent")
Expand Down

0 comments on commit a3b0e31

Please sign in to comment.