Skip to content

Commit d5d0a98

Browse files
committed
monitoring
1 parent 65fed18 commit d5d0a98

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎pkg/enqueue/Tests/Consumption/ChainExtensionTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public function testShouldProxyOnResultToAllInternalExtensions()
169169
{
170170
$context = new MessageResult(
171171
$this->createInteropContextMock(),
172+
$this->createInteropConsumerMock(),
172173
$this->createMock(Message::class),
173174
'aResult',
174175
1,

‎pkg/monitoring/MonitoringExtension.php‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function onProcessorException(ProcessorException $context): void
208208

209209
public function onMessageReceived(MessageReceived $context): void
210210
{
211-
$this->received++;
211+
++$this->received;
212212
}
213213

214214
public function onResult(MessageResult $context): void
@@ -233,7 +233,7 @@ public function onResult(MessageResult $context): void
233233
throw new \LogicException();
234234
}
235235

236-
$event = new ConsumedMessageStats(
236+
$event = new ConsumedMessageStats(
237237
$this->consumerId,
238238
$timeMs,
239239
$context->getReceivedAt(),
@@ -277,17 +277,14 @@ public function onResult(MessageResult $context): void
277277

278278
public function onPostConsume(PostConsume $context): void
279279
{
280-
281280
}
282281

283282
public function onPostMessageReceived(PostMessageReceived $context): void
284283
{
285-
286284
}
287285

288286
public function onInitLogger(InitLogger $context): void
289287
{
290-
291288
}
292289

293290
private function getNowMs(): int

0 commit comments

Comments
 (0)