function IntDataPoint::setExemplars
(Optional) List of exemplars collected from measurements that were used to form the data point
Generated from protobuf field <code>repeated .opentelemetry.proto.metrics.v1.IntExemplar exemplars = 5;</code>
Parameters
\Opentelemetry\Proto\Metrics\V1\IntExemplar[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ IntDataPoint.php, line 218
Class
- IntDataPoint
- IntDataPoint is deprecated. Use integer value in NumberDataPoint.
Namespace
Opentelemetry\Proto\Metrics\V1Code
public function setExemplars($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\V1\IntExemplar::class);
$this->exemplars = $arr;
return $this;
}