Package com.vaadin.observability
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserviceInit(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.
-
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:
serviceInitin interfacecom.vaadin.flow.server.VaadinServiceInitListener- Parameters:
serviceInitEvent- the service initialization event
-