Honeybadger.Insights.LiveView (Honeybadger v0.24.0)
View SourceCaptures telemetry events from Phoenix LiveView.
Default Configuration
By default, this module listens for the following LiveView telemetry events:
"phoenix.live_view.mount.stop" "phoenix.live_component.handle_event.stop" "phoenix.live_view.update.stop"
Custom Configuration
You can customize the telemetry events to listen for by updating the insights_config:
config :honeybadger, insights_config: %{
live_view: %{
telemetry_events: [
[:phoenix, :live_view, :mount, :stop],
[:phoenix, :live_component, :handle_event, :stop],
[:phoenix, :live_component, :update, :stop]
[:phoenix, :live_view, :handle_event, :stop],
[:phoenix, :live_view, :handle_params, :stop],
[:phoenix, :live_view, :update, :stop]
]
}
}
Summary
Functions
Attaches telemetry handlers if all required dependencies are available.
Attaches a telemetry handler for a specific event.
Extracts metadata from the telemetry event. Child modules should override this for specific events.
Implementation of handle_telemetry that can be called by overriding methods.
Handles telemetry events and processes the data. This implementation forwards to handle_event_impl which can be overridden by child modules to customize behavior while still calling the parent implementation.
Determines if an event should be ignored based on its metadata. Child modules should override this for specific filtering logic. Note: this is the metadata before any transformations.
Process the event data. Child modules can override this for custom processing.
Functions
Attaches telemetry handlers if all required dependencies are available.
Attaches a telemetry handler for a specific event.
Extracts metadata from the telemetry event. Child modules should override this for specific events.
Implementation of handle_telemetry that can be called by overriding methods.
Handles telemetry events and processes the data. This implementation forwards to handle_event_impl which can be overridden by child modules to customize behavior while still calling the parent implementation.
Determines if an event should be ignored based on its metadata. Child modules should override this for specific filtering logic. Note: this is the metadata before any transformations.
Process the event data. Child modules can override this for custom processing.