function IntDataPoint::setLabels
The set of labels that uniquely identify this timeseries.
Generated from protobuf field <code>repeated .opentelemetry.proto.common.v1.StringKeyValue labels = 1;</code>
Parameters
\Opentelemetry\Proto\Common\V1\StringKeyValue[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ IntDataPoint.php, line 102
Class
- IntDataPoint
- IntDataPoint is deprecated. Use integer value in NumberDataPoint.
Namespace
Opentelemetry\Proto\Metrics\V1Code
public function setLabels($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Common\V1\StringKeyValue::class);
$this->labels = $arr;
return $this;
}