From 02116e944a543db15ab7665e1dafbb0ac7806d89 Mon Sep 17 00:00:00 2001 From: basapuram-kumar Date: Fri, 8 Nov 2024 17:09:30 +0530 Subject: [PATCH] ODP-2564 | ODP-2412 | DRUID-17451: handling Dropwizard emitter Service not started. --- .../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 524dad165e38..abc0a502e573 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.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 void configure(Binder binder) } @Provides + @ManageLifecycle @Named(EMITTER_TYPE) public Emitter getEmitter( DropwizardEmitterConfig dropwizardEmitterConfig,