Skip to content

Commit

Permalink
Update the Handler name
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu committed Oct 10, 2023
1 parent 0b38fb0 commit 42c4e8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void prepare() throws ServiceNotProvidedException, ModuleStartException {
public void start() throws ServiceNotProvidedException, ModuleStartException {
getManager().find(CoreModule.NAME).provider()
.getService(HTTPHandlerRegister.class).addHandler(
new ZipkinHealthController(getManager()),
new ZipkinHealthHandler(getManager()),
Collections.singletonList(HttpMethod.GET)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import java.util.Map;
import java.util.stream.Collectors;

public class ZipkinHealthController {
public class ZipkinHealthHandler {
static final String STATUS_UP = "UP", STATUS_DOWN = "DOWN";

final MetricsCollector collector;
Expand All @@ -41,7 +41,7 @@ public class ZipkinHealthController {
public static final MediaType MEDIA_TYPE_ACTUATOR =
MediaType.parse("application/vnd.spring-boot.actuator.v2+json;charset=UTF-8");

public ZipkinHealthController(ModuleManager moduleManager) {
public ZipkinHealthHandler(ModuleManager moduleManager) {
ModuleServiceHolder telemetry = moduleManager.find(TelemetryModule.NAME).provider();
metricsCreator = telemetry.getService(MetricsCreator.class);
collector = telemetry.getService(MetricsCollector.class);
Expand Down

0 comments on commit 42c4e8e

Please sign in to comment.