-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdapter.php
More file actions
38 lines (31 loc) · 844 Bytes
/
Adapter.php
File metadata and controls
38 lines (31 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace Utopia\Telemetry;
interface Adapter
{
public function createCounter(
string $name,
?string $unit = null,
?string $description = null,
array $advisory = [],
): Counter;
public function createHistogram(
string $name,
?string $unit = null,
?string $description = null,
array $advisory = [],
): Histogram;
public function createGauge(
string $name,
?string $unit = null,
?string $description = null,
array $advisory = [],
): Gauge;
public function createUpDownCounter(
string $name,
?string $unit = null,
?string $description = null,
array $advisory = [],
): UpDownCounter;
public function createSpan(string $name): Span;
public function collect(): bool;
}