Implement and test telemetry backend event handlers
Implement the AnalyticsManager event handling methods in your telemetry backend and test the backend in a running Dev Workspace to verify that events are received from the front-end plugin.
Before you begin
- You have a running instance of Red Hat OpenShift Dev Spaces.
- You have a telemetry backend project created. See Create a telemetry backend.
Procedure
Results
- To verify that the
onEvent()method receives events from the front-end plugin, press the l key to disable Quarkus live coding and edit any file within the IDE. The following output should be logged:INFO [io.qua.dep.dev.RuntimeUpdatesProcessor] (Aesh InputStream Reader) Live reload disabled INFO [org.ecl.che.inc.AnalyticsManager] (executor-thread-2) The received event is: Edit Workspace File in Che - Stop the application with Ctrl+C and verify that a
WORKSPACE_STOPPEDevent is sent to the server.