Honeybadger.Insights.Ash (Honeybadger v0.25.0)
View SourceHoneybadger Insights integration for the Ash Framework.
This module implements the Ash.Tracer behaviour to capture Ash operations
and send them as events to Honeybadger Insights for monitoring and analysis.
Configuration
Enable Honeybadger Insights in your config:
config :honeybadger,
insights_enabled: true,
api_key: "your-api-key"Add the tracer to your Ash domain or resources:
use Ash.Domain,
tracers: [Honeybadger.Insights.Ash]Or per-resource:
use Ash.Resource,
domain: YourDomain,
tracers: [Honeybadger.Insights.Ash]Custom Configuration
You can customize which span types are traced via insights_config:
config :honeybadger, insights_config: %{
ash: %{
trace_types: [:custom, :action, :query]
}
}The default trace types are [:custom, :action].
Event Structure
A single event is emitted when each span completes, including duration and parent span linkage for reconstructing operation trees.