Skip to content

Commit c812544

Browse files
committed
bump cosmastech/statsd-client-adapter
1 parent d9b1f6c commit c812544

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"require": {
2626
"php": "^8.2",
27-
"cosmastech/statsd-client-adapter": "^0.3",
27+
"cosmastech/statsd-client-adapter": "^0.4",
2828
"illuminate/support": "^10.0|^11.0",
2929
"illuminate/contracts": "^10.0|^11.0"
3030
},

src/AdapterManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public function setDefaultInstance($name)
8383
*/
8484
public function getInstanceConfig($name)
8585
{
86-
return $this->setDriverKeyInConfig($this->config->get("statsd-adapter.channels.{$name}"));
86+
return $this->setDriverKeyInConfig(
87+
$this->config->get("statsd-adapter.channels.{$name}")
88+
);
8789
}
8890

8991
/**

src/Stats.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Cosmastech\LaravelStatsDAdapter;
44

55
use Illuminate\Support\Facades\Facade;
6+
use UnitEnum;
67

78
/**
89
* @method static \Cosmastech\StatsDClientAdapter\Adapters\StatsDClientAdapter channel(string|null $name = null)
@@ -15,15 +16,15 @@
1516
* @method static \Cosmastech\LaravelStatsDAdapter\AdapterManager forgetInstance(array|string|null $name = null)
1617
* @method static void purge(string|null $name = null)
1718
* @method static \Cosmastech\LaravelStatsDAdapter\AdapterManager extend(string $name, \Closure $callback)
18-
* @method static void timing(string $stat, float $durationMs, float $sampleRate = 1, array $tags = [])
19-
* @method static mixed time(callable $closure, string $stat, float $sampleRate = 1, array $tags = [])
20-
* @method static void gauge(string $stat, float $value, float $sampleRate = 1, array $tags = [])
21-
* @method static void histogram(string $stat, float $value, float $sampleRate = 1, array $tags = [])
22-
* @method static void distribution(string $stat, float $value, float $sampleRate = 1, array $tags = [])
23-
* @method static void set(string $stat, float|string $value, float $sampleRate = 1, array $tags = [])
24-
* @method static void increment(array|string $stats, float $sampleRate = 1, array $tags = [], int $value = 1)
25-
* @method static void decrement(array|string $stats, float $sampleRate = 1, array $tags = [], int $value = 1)
26-
* @method static void updateStats(array|string $stats, int $delta = 1, float $sampleRate = 1, array $tags = [])
19+
* @method static void timing(string|UnitEnum $stat, float $durationMs, float $sampleRate = 1, array $tags = [])
20+
* @method static mixed time(callable $closure, string|UnitEnum $stat, float $sampleRate = 1, array $tags = [])
21+
* @method static void gauge(string|UnitEnum $stat, float $value, float $sampleRate = 1, array $tags = [])
22+
* @method static void histogram(string|UnitEnum $stat, float $value, float $sampleRate = 1, array $tags = [])
23+
* @method static void distribution(string|UnitEnum $stat, float $value, float $sampleRate = 1, array $tags = [])
24+
* @method static void set(string|UnitEnum $stat, float|string $value, float $sampleRate = 1, array $tags = [])
25+
* @method static void increment(string|UnitEnum|array $stats, float $sampleRate = 1, array $tags = [], int $value = 1)
26+
* @method static void decrement(string|UnitEnum|array $stats, float $sampleRate = 1, array $tags = [], int $value = 1)
27+
* @method static void updateStats(string|UnitEnum|array $stats, int $delta = 1, float $sampleRate = 1, array $tags = [])
2728
* @method static mixed getClient()
2829
*
2930
* @see \Cosmastech\LaravelStatsDAdapter\AdapterManager

src/StatsDAdapterServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function register(): void
3838
*/
3939
public function provides(): array
4040
{
41-
return [AdapterManager::class, StatsDClientAdapter::class];
41+
return [AdapterManager::class, StatsDClientAdapter::class, InMemoryStatsRecord::class];
4242
}
4343

4444
protected function offerPublishing(): void

0 commit comments

Comments
 (0)