ManageLifecycle DropwizardEmitter instantiation. (#17451)

This commit is contained in:
Abhishek Radhakrishnan 2024-11-05 18:57:22 -08:00 committed by GitHub
parent 8850023811
commit d8e4be654f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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,