- 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.
27 lines
781 B
PHP
27 lines
781 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
use App\Framework\LiveComponents\Observability\ComponentMetricsCollector;
|
|
|
|
$collector = new ComponentMetricsCollector();
|
|
$collector->recordAction('form"test', 'action' . "\n" . 'name', 10.0);
|
|
|
|
$prometheus = $collector->exportPrometheus();
|
|
echo "=== PROMETHEUS OUTPUT ===\n";
|
|
echo $prometheus;
|
|
echo "=== END OUTPUT ===\n\n";
|
|
|
|
// Check what we're looking for
|
|
echo "Looking for: 'form\\\"test'\n";
|
|
echo "Contains: " . (str_contains($prometheus, 'form\\"test') ? 'YES' : 'NO') . "\n\n";
|
|
|
|
echo "Looking for: 'action\\nname'\n";
|
|
echo "Contains: " . (str_contains($prometheus, 'action\\nname') ? 'YES' : 'NO') . "\n\n";
|
|
|
|
// Also dump raw bytes
|
|
echo "=== RAW BYTES ===\n";
|
|
echo bin2hex($prometheus) . "\n";
|