Remove unnecessary destroyMethod
MODIFY
instrumentation/elasticsearch/elasticsearch-transport-5.3/javaagent/src/test/groovy/springdata/Config.groovy
instrumentation/elasticsearch/elasticsearch-transport-5.3/javaagent/src/test/groovy/springdata/Config.groovy
@@ -29,7 +29,7 @@ class Config {
return new NodeBuilder()
}
- @Bean(destroyMethod = "close")
+ @Bean
Node elasticSearchNode() {
def tmpDir = File.createTempFile("test-es-working-dir-", "")
tmpDir.delete()

MODIFY
instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java
instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java
@@ -37,7 +37,7 @@ public class OpenTelemetryAutoConfiguration {
@ConditionalOnMissingBean(OpenTelemetry.class)
public static class OpenTelemetryBeanConfig {
- @Bean(destroyMethod = "close")
+ @Bean
@ConditionalOnMissingBean
public SdkTracerProvider sdkTracerProvider(
SamplerProperties samplerProperties,

Remove unnecessary destroyMethod (#5179)