Skip to content

Commit 4a72cc6

Browse files
committed
Added control over batch size
1 parent d5d1d5d commit 4a72cc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Client/ThriftClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class ThriftClient implements ClientInterface
2222

2323
private $spans = [];
2424

25-
public function __construct(string $serviceName, AgentInterface $agent, int $batch = self::MAX_BATCH_SIZE)
25+
public function __construct(string $serviceName, AgentInterface $agent, $batch = self::MAX_BATCH_SIZE)
2626
{
2727
$this->serviceName = $serviceName;
2828
$this->agent = $agent;
29-
$this->batch = $batch;
29+
$this->batch = (int)$batch;
3030
}
3131

3232
public function add(SpanInterface $span): ClientInterface

0 commit comments

Comments
 (0)