Skip to content

Commit 3612abb

Browse files
committed
start jaxws
1 parent e05ff1d commit 3612abb

File tree

14 files changed

+75
-58
lines changed

14 files changed

+75
-58
lines changed

instrumentation-docs/collect.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,17 @@ main() {
154154
run_gradle_tasks "${gradle_tasks[@]}"
155155

156156
# Setup colima if needed
157-
setup_colima
158-
159-
# Process colima-specific instrumentations
160-
echo "Processing colima instrumentations..."
161-
gradle_tasks=()
162-
while IFS= read -r line; do
163-
gradle_tasks+=("$line")
164-
done < <(process_descriptors "${COLIMA_INSTRUMENTATIONS[@]}")
165-
run_gradle_tasks "${gradle_tasks[@]}"
166-
167-
colima stop
157+
# setup_colima
158+
#
159+
# # Process colima-specific instrumentations
160+
# echo "Processing colima instrumentations..."
161+
# gradle_tasks=()
162+
# while IFS= read -r line; do
163+
# gradle_tasks+=("$line")
164+
# done < <(process_descriptors "${COLIMA_INSTRUMENTATIONS[@]}")
165+
# run_gradle_tasks "${gradle_tasks[@]}"
166+
#
167+
# colima stop
168168

169169
# uncomment the next line to remove all .telemetry directories
170170
#find_and_remove_all_telemetry

instrumentation-docs/instrumentations.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ readonly INSTRUMENTATIONS=(
174174
"jaxrs:jaxrs-3.0:jaxrs-3.0-jersey-3.0:javaagent:testExperimental"
175175
"jaxrs:jaxrs-3.0:jaxrs-3.0-resteasy-6.0:javaagent:test"
176176
"jaxrs:jaxrs-3.0:jaxrs-3.0-resteasy-6.0:javaagent:testExperimental"
177+
"jaxws:jaxws-2.0:javaagent:test"
178+
"jaxws:jaxws-2.0-axis2-1.6:javaagent:test"
177179
)
178180

179181
# Some instrumentation test suites don't run ARM, so we use colima to run them in an x86_64

instrumentation-docs/src/main/java/io/opentelemetry/instrumentation/docs/internal/SemanticConvention.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ public enum SemanticConvention {
2626
GRAPHQL_SERVER_SPANS,
2727
FAAS_SERVER_SPANS,
2828
GENAI_CLIENT_SPANS,
29-
GENAI_CLIENT_METRICS
29+
GENAI_CLIENT_METRICS,
3030
}

instrumentation/jaxws/jaxws-2.0-axis2-1.6-testing/build.gradle.kts

Lines changed: 0 additions & 45 deletions
This file was deleted.

instrumentation/jaxws/jaxws-2.0-axis2-1.6/javaagent/build.gradle.kts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,46 @@ dependencies {
2323

2424
compileOnly(project(":muzzle"))
2525
compileOnly("jakarta.servlet:jakarta.servlet-api:5.0.0")
26+
27+
// Test dependencies from the former testing module
28+
val axis2Version = "1.6.0"
29+
testLibrary("org.apache.axis2:axis2-jaxws:$axis2Version")
30+
testLibrary("org.apache.axis2:axis2-transport-http:$axis2Version")
31+
testLibrary("org.apache.axis2:axis2-transport-local:$axis2Version")
32+
33+
testImplementation(project(":instrumentation:jaxws:jaxws-2.0-common-testing"))
34+
35+
testInstrumentation(project(":instrumentation:jaxws:jaxws-2.0:javaagent"))
36+
testInstrumentation(project(":instrumentation:jaxws:jaxws-jws-api-1.1:javaagent"))
37+
testInstrumentation(project(":instrumentation:jaxws:jaxws-2.0-axis2-1.6:javaagent"))
38+
39+
testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
40+
testInstrumentation(project(":instrumentation:jetty:jetty-8.0:javaagent"))
41+
42+
testImplementation("javax.xml.bind:jaxb-api:2.2.11")
43+
testImplementation("com.sun.xml.bind:jaxb-core:2.2.11")
44+
testImplementation("com.sun.xml.bind:jaxb-impl:2.2.11")
45+
46+
testImplementation("com.sun.xml.ws:jaxws-rt:2.2.8")
47+
testImplementation("com.sun.xml.ws:jaxws-tools:2.2.8")
48+
49+
latestDepTestLibrary("org.apache.axis2:axis2-jaxws:1.+") // see jaxws-3.0-axis2-2.0-testing module
50+
latestDepTestLibrary("org.apache.axis2:axis2-transport-http:1.+") // see jaxws-3.0-axis2-2.0-testing module
51+
latestDepTestLibrary("org.apache.axis2:axis2-transport-local:1.+") // see jaxws-3.0-axis2-2.0-testing module
52+
}
53+
54+
configurations.configureEach {
55+
if (name.contains("test")) {
56+
// axis has a dependency on servlet2 api, get rid of it - otherwise the servlet3 instrumentation
57+
// will fail during tests
58+
exclude("javax.servlet", "servlet-api")
59+
}
60+
}
61+
62+
tasks.withType<Test>().configureEach {
63+
// required on jdk17
64+
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
65+
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
66+
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
67+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
2668
}

0 commit comments

Comments
 (0)