code: def observe(self, amount):
          
          self._sum.inc(amount)
          for i, bound in enumerate(self._upper_bounds):
              if amount <= bound:
                  self._buckets[i].inc(1)
                  break
docs: Observe the given amount.