Skip to content

Commit ae0e32e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into remove-outdated-config
2 parents e526a4e + 82dcc73 commit ae0e32e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/ConfigurationFile.java

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ static Map<String, String> getProperties() {
3939
return configFileContents;
4040
}
4141

42+
// visible for tests
43+
static void resetForTest() {
44+
configFileContents = null;
45+
}
46+
4247
// visible for tests
4348
static Map<String, String> loadConfigFile() {
4449
// Reading from system property first and from env after

javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/ignore/AdditionalLibraryIgnoredTypesConfigurer.java

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public void configure(IgnoredTypesBuilder builder) {
106106
.allowClass("org.springframework.boot.web.servlet.")
107107
.allowClass("org.springframework.boot.web.embedded.netty.GracefulShutdown$$Lambda")
108108
.allowClass("org.springframework.boot.web.embedded.tomcat.GracefulShutdown$$Lambda")
109+
.allowClass(
110+
"org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory$$Lambda")
109111
.allowClass(
110112
"org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter$$Lambda")
111113
.allowClass("org.springframework.boot.autoconfigure.BackgroundPreinitializer$")

javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/config/ConfigurationPropertiesSupplierTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class ConfigurationPropertiesSupplierTest {
3232
@AfterAll
3333
static void cleanUp() {
3434
GlobalOpenTelemetry.resetForTest();
35+
ConfigurationFile.resetForTest();
3536
}
3637

3738
// regression for https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/6696

0 commit comments

Comments
 (0)