Class ObservabilityDevToolsHandler

java.lang.Object
com.vaadin.observability.micrometer.devtools.ObservabilityDevToolsHandler
All Implemented Interfaces:
com.vaadin.base.devserver.DevToolsMessageHandler

public class ObservabilityDevToolsHandler extends Object implements com.vaadin.base.devserver.DevToolsMessageHandler
Dev-mode bridge between the live Micrometer MeterRegistry and the Vaadin Copilot metrics panel.

Discovered via the Java ServiceLoader by Flow's dev-tools server (see META-INF/services). On request from the panel it snapshots every vaadin.* meter and sends it to the browser over the shared dev-tools websocket. This is a developer-only convenience view; it has no effect in production where the dev-tools connection does not exist.

  • Constructor Details

    • ObservabilityDevToolsHandler

      public ObservabilityDevToolsHandler()
  • Method Details

    • handleConnect

      public void handleConnect(com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Specified by:
      handleConnect in interface com.vaadin.base.devserver.DevToolsMessageHandler
    • handleMessage

      public boolean handleMessage(String command, tools.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Specified by:
      handleMessage in interface com.vaadin.base.devserver.DevToolsMessageHandler