code: def process_exception(self, request, exception):
          
          if self.in_lambda_ctx:
              segment = xray_recorder.current_subsegment()
          else:
              segment = xray_recorder.current_segment()
          segment.put_http_meta(http.STATUS, 500)
  
          stack = stacktrace.get_stacktrace(limit=xray_recorder._max_trace_back)
          segment.add_exception(exception, stack)
docs: Add exception information and fault flag to the
          current segment.