code: def is_eligible(self, segment):
          
          if not segment or not segment.sampled:
              return False
  
          return segment.get_total_subsegments_size() > self.streaming_threshold
docs: A segment is eligible to have its children subsegments streamed
          if it is sampled and it breaches streaming threshold.