Class ObservabilityServiceInitListener

java.lang.Object
com.vaadin.observability.ObservabilityServiceInitListener
All Implemented Interfaces:
com.vaadin.flow.server.VaadinServiceInitListener, Serializable, EventListener

public class ObservabilityServiceInitListener extends Object implements com.vaadin.flow.server.VaadinServiceInitListener
This is a service initialization listener that installs the Frontend Observability module into a Vaadin UI.
See Also:
  • Constructor Details

    • ObservabilityServiceInitListener

      public ObservabilityServiceInitListener()
  • Method Details

    • serviceInit

      public void serviceInit(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent)
      Adds the current parent trace and span IDs into a meta tag on the page and ensures that an ObservabilityHandler is installed on the UI.
      Specified by:
      serviceInit in interface com.vaadin.flow.server.VaadinServiceInitListener
      Parameters:
      serviceInitEvent - the service initialization event