Enable Discovery debug logging for production troubleshooting

- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Framework\Analytics\Events;
/**
* Event für Business-Ereignisse (Conversions, Purchases, etc.)
*/
final readonly class BusinessEvent
{
public function __construct(
public string $event,
public float $value = 0.0,
public string $currency = 'EUR',
public array $properties = [],
public string $sessionId = '',
public float $timestamp = -1
) {
if ($this->timestamp === -1) {
$this->timestamp = microtime(true);
}
}
}

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Framework\Analytics\Events;
/**
* Event für Seitenaufrufe
*/
final readonly class PageView
{
public function __construct(
public string $path,
public string $title = '',
public string $referer = '',
public array $properties = [],
public string $sessionId = '',
public float $timestamp = -1
) {
if ($this->timestamp === -1) {
$this->timestamp = microtime(true);
}
}
}

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace App\Framework\Analytics\Events;
/**
* Analytics-Event für Sicherheitsvorfälle
*
* Entkoppelt Analytics von Security-System über Events
*/
final readonly class SecurityEvent
{
public function __construct(
public string $eventType,
public string $category,
public string $severity,
public array $properties = [],
public float $timestamp = -1
) {
if ($this->timestamp === -1) {
$this->timestamp = microtime(true);
}
}
}

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace App\Framework\Analytics\Events;
use App\Framework\Analytics\AnalyticsCategory;
/**
* Event für Benutzeraktionen
*/
final readonly class UserAction
{
public function __construct(
public string $action,
public AnalyticsCategory $category,
public array $properties = [],
public string $sessionId = '',
public float $timestamp = -1
) {
if ($this->timestamp === -1) {
$this->timestamp = microtime(true);
}
}
}