docs: def send_exception_to_sentry(self, exc_info):
          """Send an exception to Sentry if enabled.
  
          :param tuple exc_info: exception information as returned from
              :func:`sys.exc_info`
  
          """
          if not self.sentry_client:
              LOGGER.debug('No sentry_client, aborting')
              return
  
          message = dict(self.active_message)
          try:
              duration = math.ceil(time.time() - self.delivery_time) * 1000
          except TypeError:
              duration = 0
          kwargs = {'extra': {
                        'consumer_name': self.consumer_name,
                        'env': dict(os.environ),
                        'message': message},
                    'time_spent': duration}
          LOGGER.debug('Sending exception to sentry: %r', kwargs)
          self.sentry_client.captureException(exc_info, **kwargs)