From 1928dadff10d5b8ba5e8d0073157a76c7ebec257 Mon Sep 17 00:00:00 2001 From: Leandro Ezequiel Barrios Date: Thu, 5 Sep 2024 16:08:50 -0300 Subject: [PATCH] .. --- .../common/watcher/TracingConfigurationFileWatcher.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/tracing/mule-tracer-common/src/main/java/org/mule/runtime/tracer/common/watcher/TracingConfigurationFileWatcher.java b/modules/tracing/mule-tracer-common/src/main/java/org/mule/runtime/tracer/common/watcher/TracingConfigurationFileWatcher.java index 70f07aa3b93c..ca5281176162 100644 --- a/modules/tracing/mule-tracer-common/src/main/java/org/mule/runtime/tracer/common/watcher/TracingConfigurationFileWatcher.java +++ b/modules/tracing/mule-tracer-common/src/main/java/org/mule/runtime/tracer/common/watcher/TracingConfigurationFileWatcher.java @@ -6,6 +6,7 @@ */ package org.mule.runtime.tracer.common.watcher; +import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE; import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY; import static org.mule.runtime.tracer.exporter.config.api.OpenTelemetrySpanExporterConfigurationProperties.MULE_OPEN_TELEMETRY_EXPORTER_CONFIGURATION_WATCHER_DEFAULT_DELAY_PROPERTY; @@ -38,7 +39,7 @@ public class TracingConfigurationFileWatcher extends Thread { protected long delay = DEFAULT_DELAY; public TracingConfigurationFileWatcher(String filename, Runnable doOnChange) { - super("FileSpanExporterConfigurationWatcher"); + super("TracingConfigurationFileWatcher"); this.file = new File(filename); this.doOnChange = doOnChange; @@ -66,6 +67,7 @@ protected void checkAndConfigure() throws InterruptedException { } } } + key.reset(); }