function Buckets::setBucketCounts
bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
Generated from protobuf field <code>repeated uint64 bucket_counts = 2;</code>
Parameters
int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ExponentialHistogramDataPoint/ Buckets.php, line 129
Class
- Buckets
- Buckets are a set of bucket counts, encoded in a contiguous array of counts.
Namespace
Opentelemetry\Proto\Metrics\V1\ExponentialHistogramDataPointCode
public function setBucketCounts($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64);
$this->bucket_counts = $arr;
return $this;
}