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