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:
24
src/Framework/Analytics/Events/BusinessEvent.php
Normal file
24
src/Framework/Analytics/Events/BusinessEvent.php
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
24
src/Framework/Analytics/Events/PageView.php
Normal file
24
src/Framework/Analytics/Events/PageView.php
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
25
src/Framework/Analytics/Events/SecurityEvent.php
Normal file
25
src/Framework/Analytics/Events/SecurityEvent.php
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
25
src/Framework/Analytics/Events/UserAction.php
Normal file
25
src/Framework/Analytics/Events/UserAction.php
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user