Skip to content

Commit 077f5da

Browse files
committed
fix: Merge label values
1 parent 00b67db commit 077f5da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Adapter/StatsD/Counter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434

3535
public function with(string ...$labelValues): static
3636
{
37-
$this->labelValues = $labelValues;
37+
$this->labelValues = array_merge($this->labelValues, $labelValues);
3838
return $this;
3939
}
4040

src/Adapter/StatsD/Gauge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434

3535
public function with(string ...$labelValues): static
3636
{
37-
$this->labelValues = $labelValues;
37+
$this->labelValues = array_merge($this->labelValues, $labelValues);
3838
return $this;
3939
}
4040

src/Adapter/StatsD/Histogram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434

3535
public function with(string ...$labelValues): static
3636
{
37-
$this->labelValues = $labelValues;
37+
$this->labelValues = array_merge($this->labelValues, $labelValues);
3838
return $this;
3939
}
4040

0 commit comments

Comments
 (0)