Raxol.Core.ErrorReporter (Raxol v2.0.1)

View Source

Automatic error report generation system for Phase 4.3 Error Experience.

Provides comprehensive error reporting with integration to:

  • Phase 3 performance optimization data
  • Phase 4.2 development tools analysis
  • Error pattern learning system insights
  • Automatic report persistence and sharing

Summary

Functions

Returns a specification to start this module under a supervisor.

Export reports in various formats for sharing.

Generate an automatic error report for a given error.

Generate a comprehensive session report.

Get reporting statistics and configuration.

Process queued errors and generate batch report.

Queue an error for batch reporting.

Start the error reporter with optional configuration.

Update reporter configuration.

Types

report_config()

@type report_config() :: %{
  level: report_level(),
  format: report_format(),
  include_performance: boolean(),
  include_patterns: boolean(),
  include_suggestions: boolean(),
  auto_persist: boolean()
}

report_format()

@type report_format() :: :text | :json | :markdown | :html

report_level()

@type report_level() :: :minimal | :standard | :comprehensive

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

export_reports(export_opts \\ %{})

Export reports in various formats for sharing.

generate_report(error, context \\ %{}, opts \\ [])

Generate an automatic error report for a given error.

generate_session_report(opts \\ [])

Generate a comprehensive session report.

get_stats()

Get reporting statistics and configuration.

handle_manager_call(request, from, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_call/3.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

handle_manager_info(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.

process_queue(opts \\ [])

Process queued errors and generate batch report.

queue_error(error, context \\ %{})

Queue an error for batch reporting.

start_link(init_opts \\ [])

update_config(new_config)

Update reporter configuration.