in packages/opentelemetry-cloud-monitoring-exporter/src/transform.ts [230:241]
function transformNumberValue(
valueType: OTValueType,
value: number
): monitoring_v3.Schema$TypedValue {
if (valueType === OTValueType.INT) {
return {int64Value: value.toString()};
} else if (valueType === OTValueType.DOUBLE) {
return {doubleValue: value};
}
exhaust(valueType);
throw Error(`unsupported value type: ${valueType}`);
}