From d8e4be654ff96dc5b34a5029e5e821ddc057f9b5 Mon Sep 17 00:00:00 2001 From: Abhishek Radhakrishnan Date: Tue, 5 Nov 2024 18:57:22 -0800 Subject: [PATCH] ManageLifecycle DropwizardEmitter instantiation. (#17451) --- .../druid/emitter/dropwizard/DropwizardEmitterModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions-contrib/dropwizard-emitter/src/main/java/org/apache/druid/emitter/dropwizard/DropwizardEmitterModule.java b/extensions-contrib/dropwizard-emitter/src/main/java/org/apache/druid/emitter/dropwizard/DropwizardEmitterModule.java index 524dad165e3..abc0a502e57 100644 --- a/extensions-contrib/dropwizard-emitter/src/main/java/org/apache/druid/emitter/dropwizard/DropwizardEmitterModule.java +++ b/extensions-contrib/dropwizard-emitter/src/main/java/org/apache/druid/emitter/dropwizard/DropwizardEmitterModule.java @@ -28,6 +28,7 @@ import com.google.inject.Provides; import com.google.inject.name.Named; import com.google.inject.name.Names; import org.apache.druid.guice.JsonConfigProvider; +import org.apache.druid.guice.ManageLifecycle; import org.apache.druid.initialization.DruidModule; import org.apache.druid.java.util.emitter.core.Emitter; @@ -52,6 +53,7 @@ public class DropwizardEmitterModule implements DruidModule } @Provides + @ManageLifecycle @Named(EMITTER_TYPE) public Emitter getEmitter( DropwizardEmitterConfig dropwizardEmitterConfig,