- Add comprehensive health check system with multiple endpoints - Add Prometheus metrics endpoint - Add production logging configurations (5 strategies) - Add complete deployment documentation suite: * QUICKSTART.md - 30-minute deployment guide * DEPLOYMENT_CHECKLIST.md - Printable verification checklist * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference * production-logging.md - Logging configuration guide * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation * README.md - Navigation hub * DEPLOYMENT_SUMMARY.md - Executive summary - Add deployment scripts and automation - Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment - Update README with production-ready features All production infrastructure is now complete and ready for deployment.
50 lines
1005 B
PHP
50 lines
1005 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\ErrorReporting;
|
|
|
|
use Throwable;
|
|
|
|
/**
|
|
* Interface for error reporting services
|
|
*
|
|
* Provides comprehensive error reporting with context enrichment
|
|
*/
|
|
interface ErrorReporterInterface
|
|
{
|
|
/**
|
|
* Report an error from Throwable
|
|
*/
|
|
public function reportThrowable(
|
|
Throwable $throwable,
|
|
string $level = 'error',
|
|
array $context = []
|
|
): string;
|
|
|
|
/**
|
|
* Report a manual error
|
|
*/
|
|
public function reportError(
|
|
string $level,
|
|
string $message,
|
|
array $context = [],
|
|
?Throwable $exception = null
|
|
): string;
|
|
|
|
/**
|
|
* Report an error with full context
|
|
*/
|
|
public function report(ErrorReport $report): string;
|
|
|
|
/**
|
|
* Get error report by ID
|
|
*/
|
|
public function getReport(string $reportId): ?ErrorReport;
|
|
|
|
/**
|
|
* Get recent error reports
|
|
*/
|
|
public function getRecentReports(int $limit = 100, int $offset = 0): array;
|
|
}
|