-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DE-111852 Add event dispatcher for better observability (#100)
- Loading branch information
1 parent
19a9a3e
commit 237c9bd
Showing
5 changed files
with
232 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace BE\QueueManagement\Observability; | ||
|
||
use BE\QueueManagement\Jobs\JobInterface; | ||
use DateTimeImmutable; | ||
|
||
class ExecutionPlannedEvent | ||
{ | ||
public function __construct( | ||
public readonly JobInterface $job, | ||
public readonly DateTimeImmutable $executionPlannedAt, | ||
public readonly int $delayInSeconds, | ||
public readonly string $prefixedQueueName, | ||
public readonly ?string $scheduledEventId, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace BE\QueueManagement\Observability; | ||
|
||
class MessageSentEvent | ||
{ | ||
/** | ||
* @param mixed[] $messageAttributes | ||
*/ | ||
public function __construct( | ||
public readonly int $delayInSeconds, | ||
public readonly array $messageAttributes, | ||
public readonly string $messageBody, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters