function MeterInterface::createCounter
Creates a `Counter`.
Parameters
string $name name of the instrument:
?string $unit unit of measure:
?string $description description of the instrument:
array $advisory an optional set of recommendations:
Return value
CounterInterface created instrument
See also
https://github.com/open-telemetry/opentelemetry-specification/blob/main…
3 methods override MeterInterface::createCounter()
- LateBindingMeter::createCounter in vendor/
open-telemetry/ api/ Metrics/ LateBindingMeter.php - Creates a `Counter`.
- Meter::createCounter in vendor/
open-telemetry/ sdk/ Metrics/ Meter.php - Creates a `Counter`.
- NoopMeter::createCounter in vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopMeter.php - Creates a `Counter`.
File
-
vendor/
open-telemetry/ api/ Metrics/ MeterInterface.php, line 55
Class
Namespace
OpenTelemetry\API\MetricsCode
public function createCounter(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : CounterInterface;