function GPBUtil::checkUint64
29 calls to GPBUtil::checkUint64()
- Event::setTimeUnixNano in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ Span/ Event.php - time_unix_nano is the time the event occurred.
- Exemplar::setTimeUnixNano in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ Exemplar.php - time_unix_nano is the exact time when this exemplar was recorded Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
- ExponentialHistogramDataPoint::setCount in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ExponentialHistogramDataPoint.php - count is the number of values in the population. Must be non-negative. This value must be equal to the sum of the "bucket_counts" values in the positive and negative Buckets plus the "zero_count" field.
- ExponentialHistogramDataPoint::setStartTimeUnixNano in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ExponentialHistogramDataPoint.php - StartTimeUnixNano is optional but strongly encouraged, see the the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
- ExponentialHistogramDataPoint::setTimeUnixNano in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ExponentialHistogramDataPoint.php - TimeUnixNano is required, see the detailed comments above Metric. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php, line 133
Class
Namespace
Google\Protobuf\InternalCode
public static function checkUint64(&$var) {
if (is_numeric($var)) {
if (PHP_INT_SIZE == 8) {
$var = intval($var);
}
else {
$var = number_format($var, 0, ".", "");
}
}
else {
throw new \Exception("Expect integer.");
}
}